I have created an mobile application by using Delphi XE7. The program sends push notifications via Kinvey and GCM. Upon installation of the APK for the first time, it sends one push notification, which is working correctly. For the seconds time(same APP on the same device), it sends twice, and third time, three times and so on. I have discovered the problem is caused by adding more IDs under Kinvey/users. So if I manually delete all the IDs and install the APK again, it will work fine.
Therefore, I would really like to know if the IDs can be cleared by itself upon new installation of APK on the same device.
Thanks in advance!
I had the same problem. AFAIK the answer is no, installing a new APK or uninstalling the application doesnt unregister your ID from your backend provider (Kinvey, Parse, Azure notification hub).
My solution was to add a collapse_key in the gcm payload
Ps: In my case, Notification Hub has an expiration for registrations (I dont know if Kinvey has it too) so the push is received the same time as registrations have BUT collapsed so you just "receive" one until the older registrations expires