Libraries
Articles

Mobile Push

From Libzter

Share/Save/Bookmark
Jump to: navigation, search


Mobile Push

Developer(s)Ericsson AB
Initial Release?
Current Version1.0 Alpha
Language(s)Java
Licence(s)?
Platform(s)Android

Contents

[edit] Overview

Mobile Push is an open source API that provides push notifications to Android applications. Notifications are sent through SMS or HTTP, and can be used for various applications that needs to receive a data stream without polling.

[edit] Technology

Mobile Push requires Android OS 1.6 or later. There is a requirement to sign up for a developer key at Ericsson labs.

[edit] Example and usage

There are some steps needed to be taken in XML configuration before the application is ready to use push. That is well described at the library site. When done, only a handler is used to capture the notifications. Like this:

public class MyPushReceiver extends PushReceiver {
 
   @Override
   public void onPushMessageReceived(Context context, String msg) {
      Log.i("Mobile Push", "Received: " + msg);
      foobar(msg, context); // do whatever
   }
 
   @Override
   public void onPushFailed(Context context, Exception e) {
      // error handling
   }
}

[edit] Resources

Project Page


Library Navigation

  • Language

  • Category
Google AdSense