This question is locked. New answers and comments are not allowed.
We have a PhoneGap 3.5 application using Telerik Backend services to manage Push Notifications.
Everything works fine until we uninstall the app and then reinstall it (on iPhone). We can still see the device on the Backends device list but the getRegistration() callback is returning not found (err.code === 801). This leads to a big problem, as the device is been registered multiple times and will also receive as many messages as there are registrations.
The problem does not occur on Android or if I just restart the app on iOS. On Android, if I try to register the device twice, the callback returns an error(err.code === 601), but this is not happening here. I don't think I fully understand how the Backend service identifies that the requesting device is already been registered? I can see that the Hardware ID is different, but how is it generated? Push Token seems to be the same every time.
Additional information:
* we are using development certificates for iOS
* we are using PhoneGap Build to build the app
* I have tried to change the order of execution of enabling for device(enableNotifications()) and getting registration info(getRegistration()), but it doesn't seem to matter in which order it is done
* the test device is a iPhone 4S using iOS 7.1.2
Everything works fine until we uninstall the app and then reinstall it (on iPhone). We can still see the device on the Backends device list but the getRegistration() callback is returning not found (err.code === 801). This leads to a big problem, as the device is been registered multiple times and will also receive as many messages as there are registrations.
The problem does not occur on Android or if I just restart the app on iOS. On Android, if I try to register the device twice, the callback returns an error(err.code === 601), but this is not happening here. I don't think I fully understand how the Backend service identifies that the requesting device is already been registered? I can see that the Hardware ID is different, but how is it generated? Push Token seems to be the same every time.
Additional information:
* we are using development certificates for iOS
* we are using PhoneGap Build to build the app
* I have tried to change the order of execution of enabling for device(enableNotifications()) and getting registration info(getRegistration()), but it doesn't seem to matter in which order it is done
* the test device is a iPhone 4S using iOS 7.1.2