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: 220.127.116.113 (eval version)
Android Device: Samsung Galaxy Ace running Android 2.3.4
Any help in getting this example to run is greatly appreciated.
This topic has been locked.
Pinned topic [Solved] PushNotification sample on Android
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Re: [Solved] PushNotification sample on Android2012-05-30T06:24:21ZThis is the accepted answer. This is the accepted answer.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.
Re: [Solved] PushNotification sample on Android2012-05-31T06:55:02ZThis is the accepted answer. This is the accepted answer.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 2700059KWB288 Posts
Re: [Solved] PushNotification sample on Android2012-05-31T10:33:23ZThis is the accepted answer. This is the accepted answer.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