Details
-
Type: New Feature
-
Status: Resolved
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.1 Final
-
Fix Version/s: 1.2 Beta
-
Component/s: Containers
-
Labels:None
-
Environment:Android Container and ICEpush-ee
Description
C2DM has been deprecated and replaced with Google Cloud Messaging (GCM). The Android container and ICEpush EE infrastructure need to support GCM. While legacy support for C2DM is desirable, it is not necessary to support both from a single server-side application.
Activity
Migration
created issue -
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #31166 | Thu Sep 27 15:30:54 MDT 2012 | steve.maryka | Mobi-345: C2DM Sender id changed to GCM sender id. Preference changed from 'C2DM Notification' to 'Cloud Notification.' |
Files Changed | ||||
MODIFY
/icemobile/trunk/icemobile/client/android/container/res/xml/preferences.xml
MODIFY /icemobile/trunk/icemobile/client/android/container/src/org/icemobile/client/android/ICEmobileContainer.java |
Repository | Revision | Date | User | Message |
ICEsoft Public SVN Repository | #31386 | Wed Oct 10 11:32:28 MDT 2012 | steve.maryka | mobi-345: Reset cloud sender id to GCM project id. It was switched back to the C2DM sender in order to produce a patched container for 1.1. |
Files Changed | ||||
MODIFY
/icemobile/trunk/icemobile/client/android/container/src/org/icemobile/client/android/ICEmobileContainer.java
|
Migration
made changes -
Field | Original Value | New Value |
---|---|---|
Reporter | Migration [ remote ] | Steve Maryka [ steve.maryka ] |
Migration
made changes -
Fix Version/s | 1.2 Beta [ 10344 ] |
Migration
made changes -
Status | Open [ 1 ] | Resolved [ 5 ] |
Resolution | Fixed [ 1 ] |
Investigation into the migration path from C2DM to GCM indicates that client code can remain the same, with the only required change being the sender id.
The server-side is a bit different. The authentication process is gone, and now only a server key is required to send. The existing C2DM data format is preserved, so only the message header needs to change. A new notification provider for GCM is warranted.
Configuration of the notification provider requires the server key that matches the GCM sender code. Project credentials are created/configured through googleapis. The GCM notification provider configured into the application either using a Java system property:
-Dcom.icesoft.icepush.gcmlogin="Server key for your GCM project"
or in the web.xml using
<context-param>
<param-name>gcm.authKey</param-name>
<param-value>Server key for your GCM project</param-value>
</context-param>