When registering for push notifications it seems that every time my app launches it registers a new device ID for the same device token. This causes multiple of the same push notification to appear. This doesn’t happen to me when I build locally but once I start testing with TestFlight all my users experience this problem. Is there anyway to check if a device is registered before trying to register it again?
No this is happening every time the app is launched. Is it necessary to check if the device is registered before calling didRegisterForRemoteNotificationsWithDeviceToken? I’ve attached a screen shot of what I’m seeing in my device table.
The value in this property remains the same while the app (or another app from the same vendor) is installed on the iOS device. The value changes when the user deletes all of that vendor’s apps from the device and subsequently reinstalls one or more of them. The value can also change when installing test builds using Xcode or when installing an app on a device using ad-hoc distribution.