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: 188.8.131.523 (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.
3 replies Latest Post - 2012-05-31T10:33:23Z by IdanAdar
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:21Z in response to SystemAdminI 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.
IdanAdar 2700059KWB288 PostsACCEPTED ANSWER
Re: [Solved] PushNotification sample on Android2012-05-31T10:33:23Z in response to SystemAdminThat 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