Android Push Notifications: Get DeviceToken after Reinstall?

Is there a way to force android push registration after reinstalling an app?  I need to get the device token on a fresh install but I am not getting the RemoteRegistration event.  Any ideas?

Help? Anyone at Corona?

What version of Corona SDK are you using?

Are you registering an event handler for notifications?

Perhaps some code would help us see what’s going on.

Rob

I am using the latest daily build.  Yes I am registering event handlers for notifications.  The code is the boilerplate code for handling notifications.  

Registering for push notifications works fine.  On the first install, the app registers and I can save the device token.  The problem arises when you get a fresh re-install of the app.  Android has no notifications.registerForPushNotifications() so it seems like there is no way to retrieve the device token or re-register to get a new device token.  I need to have that device token saved locally and it seems impossible to do on a re-install.

You should automatically get a registration event in that circumstance.

Rob

Yea, that does not seem to be happening.  No registration event on the reinstall.

Can you put together a sample I can test?

Would the corona sample android push notification project work for testing?  If you can get a registration event on a re-install with that project then we will know it is an issue on my end.  Thanks.

That would be a good test.  What happens when you run the sample app?

Help? Anyone at Corona?

What version of Corona SDK are you using?

Are you registering an event handler for notifications?

Perhaps some code would help us see what’s going on.

Rob

I am using the latest daily build.  Yes I am registering event handlers for notifications.  The code is the boilerplate code for handling notifications.  

Registering for push notifications works fine.  On the first install, the app registers and I can save the device token.  The problem arises when you get a fresh re-install of the app.  Android has no notifications.registerForPushNotifications() so it seems like there is no way to retrieve the device token or re-register to get a new device token.  I need to have that device token saved locally and it seems impossible to do on a re-install.

You should automatically get a registration event in that circumstance.

Rob

Yea, that does not seem to be happening.  No registration event on the reinstall.

Can you put together a sample I can test?

Would the corona sample android push notification project work for testing?  If you can get a registration event on a re-install with that project then we will know it is an issue on my end.  Thanks.

That would be a good test.  What happens when you run the sample app?

Hi.  Has this been tested after the last message?

I’m mostly concerned with Android.  It seems to get the remoteregistration event on first install.  But when I uninstall and re-install, I wasn’t seeing the event called again.  I will troubleshoot further, but I just want to make sure the expected behaviour is that the remoteRegistration event is called on each install.  Is that right?

Eric

Hi.  Has this been tested after the last message?

I’m mostly concerned with Android.  It seems to get the remoteregistration event on first install.  But when I uninstall and re-install, I wasn’t seeing the event called again.  I will troubleshoot further, but I just want to make sure the expected behaviour is that the remoteRegistration event is called on each install.  Is that right?

Eric