No Remote Registration Event During Initial App Install

And if you use my ADB code (put it in a dos box) ?

If you copy and locally install then documents folder will remain and this is by design.  

When your users update your app then don’t expect to lose their saved data!

Tested on Android 7 with “Automatic Restore” off. Seems that Samsung devices also has their own restore feature too.

It seems that Corona has updated the old (GCM) notification plugin. Now the ‘event registration’ does not always appear when the app launches. 

So when i update my old app to a new version (using the old GCM notification plugin), there is no ‘event registration’ being fired at all. The old notification token-id still works fine.

I can only get the ‘event registration’ when the app-data is deleted.

Guys @ Corona, is there a way to forcefully get an ‘event registration’ ?

Is the app-data somehow linked to the notification token-id ? (https://developers.google.com/instance-id/guides/android-implementation)

@yosu

When using the legacy notifications plugin have you added the following plugin to your build.settings?

["shared.google.play.services.gcm"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } },

@SGS, the result is the same when I do an “adb uninstall/install.” If Automatic Restore is on and it restores old files into the system.DocumentsDirectory during a clean install then I do not get a remoteRegistration event/token.

@ingemar_cl,

I added it and there isn’t any token on every app-kill-restart. I was expecting the token on every app restart, as what my previous APK which I have build in end-2016.

The ‘event registration’ with the token is only given during the first app start after an install. Subsequent app starts/restarts does not give out anymore ‘event registration’ and thus no token.