I know this has been discussed before, but the only solution I found (canonical IDs) don't work in my scenario.
Scenario:
- User installs App and registers with his user account A
- User gets push notifications meant to be delivered to this specific user account A
- User uninstalls the app
- User reinstalls the app
- User registers with a different user account B
Now notifications are delivered for both user accounts. From my understanding, using cannonical GCM Reg IDs would only consolidate those IDs and prevent sending duplicate notifications. In this case the App gets notifications for a different user that shouldn't be delivered at all.
Is there any fix for that? Only thing I can think of would be actively deregistering when uninstalling the app, but in another thread I read, it's not possible to execute code on deinstallation.