Topic
IC4NOTICE: developerWorks Community will be offline May 29-30, 2015 while we upgrade to the latest version of IBM Connections. For more information, read our upgrade FAQ.
3 replies Latest Post - ‏2012-05-31T10:33:23Z by IdanAdar
SystemAdmin
SystemAdmin
570 Posts
ACCEPTED ANSWER

Pinned topic [Solved] PushNotification sample on Android

‏2012-05-28T13:35:15Z |
Hello Folks

I have been trying to run the PushNotification sample (Module 21) on Android but getting no success. I have already registered my Google id with C2DM and followed the example exactly as described. The only change I made was the PushSender attribute.

The problem is when I do the login, the login succeeds but the onReadyToSubscribe method never gets called. I have enabled debug logging on the server and can see that Authentication is succeeding (log file is attached).

Worklight Server: 4.2.1.1183 (eval version)
Android Device: Samsung Galaxy Ace running Android 2.3.4

Any help in getting this example to run is greatly appreciated.

TIA
Arshad
  • SystemAdmin
    SystemAdmin
    570 Posts
    ACCEPTED ANSWER

    Re: [Solved] PushNotification sample on Android

    ‏2012-05-30T06:24:21Z  in response to SystemAdmin
    I am finally able to make this example work. It seemed that there was some problem with my Google Id registration. Once I registered again, the example started to work without making any changes.

    Arshad
  • SystemAdmin
    SystemAdmin
    570 Posts
    ACCEPTED ANSWER

    Re: [Solved] PushNotification sample on Android

    ‏2012-05-31T06:55:02Z  in response to SystemAdmin
    Few points to note:
    1. Sync should be enabled on the phone.
    2. At least one of the Google service (e.g. GMail) must have sync enabled.
  • IdanAdar
    IdanAdar
    288 Posts
    ACCEPTED ANSWER

    Re: [Solved] PushNotification sample on Android

    ‏2012-05-31T10:33:23Z  in response to SystemAdmin
    That is true. Push Notifications have pre-requisites.
    These are (in Android):
    1. Public Internet connection for the device
    2. Public Internet connection for Worklight Server
    3. Device must be synced with a Gmail address
    4. Your app must be configured with a C2DM-enabled gmail address and password