lonelee / openmobster

Automatically exported from code.google.com/p/openmobster
0 stars 0 forks source link

Cleanup Push Notification Handling on Android #58

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Need to move away from the Hardcoded handling to a pluggable user defined 
handling

Original issue reported on code.google.com by openmobs...@gmail.com on 20 Jun 2011 at 1:53

GoogleCodeExporter commented 9 years ago
Make the Android Push Notification more App oriented rather than the Generic 
Cloud Manager App oriented. This will require a robust API for locating users 
and devices, etc both on the device and the cloud,

This will take careful design, so moving it to the next release

Original comment by openmobs...@gmail.com on 13 Jul 2011 at 2:37

GoogleCodeExporter commented 9 years ago

Original comment by openmobs...@gmail.com on 1 Aug 2011 at 9:58

GoogleCodeExporter commented 9 years ago
Now to enable Push Notifications, in your AndroidManifest.xml file add the 
following receivers:

<receiver 
android:name="org.openmobster.core.mobileCloud.api.ui.framework.push.PushBroadca
stReceiver">
   <intent-filter>
       <action android:name="This should be the package name of the App"/>
    </intent-filter>
</receiver>

<receiver 
android:name="org.openmobster.core.mobileCloud.api.ui.framework.push.SyncPushBro
adcastReceiver">
    <intent-filter>
       <action android:name="org.openmobster.sync.push"/>
    </intent-filter>
</receiver>

And openmobster-app.xml,
<app-conf>
    <encryption>false</encryption>

    <push>
        <launch-activity-class>org.openmobster.core.mobileCloud.android_native.framework.ListApp</launch-activity-class>
        <icon-name>push</icon-name>
    </push>
</app-conf>

In this, launch-activity-class is the class name of the Activity to be invoked 
when clicking on a push notification. icon-name points to the icon image that 
should be displayed with the notification

Original comment by openmobs...@gmail.com on 25 Sep 2011 at 2:27