Push Notification Issue

Bill Norris

Active Member
Licensed User
Longtime User
After a successful push-notification message, the next time I tried I got an error message in the b4a_c2dm.bat file that the device name does not exist in the database. I see in Googles documentation that they will periodically "refresh" the device_id without notice, and that the application needs to be able to handle that. How do we set up our application to deal with the fact that google may change the device id at any time? Does that mean the device need to re-register every day so the id will stay current? I'm stumped
 
Last edited:

Bill Norris

Active Member
Licensed User
Longtime User
RE:

Yes, it works fine after re-register. If it happens again, I am going to log into my web host account and look at the c2dm database to see if that device is still listed before I re-register.


I've posted another issue that nobody seems to have answer to. Lets say someone has an app and they have 10 devices on which it will be running. Each device needs to be registered for push notification service. I would like a solution so that the end user does not have to do this himself, some sort of "auto-registration". In order to do this, I think I would need some way for the device to have some kind of unique internal ID that it could use as its identifier when registering?

Also, I read in the Google documentation that they may occasionally refresh the device id, and that "your application needs to be able to handle this". I take that to mean if they refresh the device_id, the device would need to re-register in order to continue to receive push messages?

Thanks.
 
Upvote 0
Top