background preloader

UC1

Facebook Twitter

Connection management — mBlox documentation. mBlox operates two platforms: one based in the USA and the other in Europe. This section provides some important information for connecting to the platforms and about the minor differences between them. Transport XML over HTTP All transactions over the interface are initiated with an HTTP POST. The GET method is not supported. The body of the POST contains a single parameter, XMLDATA. The XML document itself should be encoded as ISO-8859-1 (Latin-1). Most application servers will automatically handle the generation of the appropriate HTTP header and correct use of URL encoding when performing an HTTP POST. Your HTTP server should support HTTP version 1.1 (although your application may POST to the mBlox server in either version 1.0 or 1.1).The HTTP request should include the header line: Content-Type: application/x-www-form-urlencoded Support for secure connections You can send and receive XML traffic over HTTPS if additional security is required for your connection to mBlox.

Network latency. 5/5 SMPP Provider. How to Implement Push Notifications for Android. UPDATE 5/2/2013: I wrote this post almost 3 years ago. At this point, Google GCM is the best way to implement push if you are targeting Android 2.2+. However, this post is still relevant if you want to implement push on ALL versions of Android. Hello everyone. In this post I will try to provide you with a quick example on how to implement push notifications for your Android app using MQTT protocol.

I will NOT discuss here why an application might need push notifications or the advantages of Push over Pull. I assume that you know exactly what I mean by push notifications are and why you might need them. However, before jumping in straight to the good stuff, let’s go over how it all started. Introduction It’s been around 4 months now since I’ve started developing apps on the Android platform.

Poll? Advantages: easy to implement. no cost solution Disadvantages: Obviously, you will never be actually real-time. SMS Android allows you to intercept SMS messages. Advantages: easy to implement. 5/5 Android Push Notifications using Google Cloud Messaging (GCM), PHP and MySQL. Android Push Notification with GCM. Push notification is a mechanism to solve to common issues found in mobile application development. A common use is to inform the user that an event has occurred on the server which may require the user to interact with the application.

Another use is to update local state or inform the application to request updated state from the server. The Android emulator is capable of receiving push notifications through GCM, however, it does require an additional step of actually logging a valid Google account into the emulator when it is running. This will need to be done for each emulator that you wish to use with push notifications through GCM. Google Cloud Messaging Google provides a service called Google Cloud Messaging (GCM) to provide push notifications for the Android platform. 1. Log into the Google APIs console ( to create a project. 2. Select the “Services” menu item. 3. Select the “API Access” menu item. Android Application 1. 2. 3. 4. 5. Tuto Google cloud Messaging (GCM) At the Google IO 2012, the beta version of Android push notifications system called C2DM was replaced by Google Cloud Messaging (GCM). GCM has many new features over the existing system.

Refer to this document for details of the differences and details about migrating your existing systems from C2DM to GCM. To get started, download the Extras > Google Cloud Messaging for Android Library from the Android SDK.This library provides the jars to simplify the development on both the server side and client side. From the Google API console page, create a new project and generate the API key. Refer this page for complete details. Client Application Create a new android project and add the GCM.jar to its buildpath.Generate the AndroidManifest.xml file as per the document. GCMRegistrar.checkManifest(this); Create a new activity and add the following code to register. replace the SENDER_ID with the 12 digit project Id from the URL.

Use the below code to send the notifications: Updates: 1.