Closed matrosovDev closed 8 years ago
Also I know about Apple bug with duplicated push notification so I fixed it on my side. Invocation twice this line application.registerForRemoteNotifications() leads duplicated issue.
Mentioned here as well: http://stackoverflow.com/questions/32840916/receiving-duplicate-push-notification-ios9
but in any case it does not resolve issue I've created.
Hi @matrosovDev, Please check if UDID is the same for subscribe and unsubscribe
Hey Andrey, by the way the UDID is the second issue, the main issue duplicated notifications. As I've described above when I create subscription I use this:
subscription.deviceUDID = UIDevice.currentDevice().identifierForVendor!.UUIDString
and when I unsubscribe I use:
let deviceUDIDStr = UIDevice.currentDevice().identifierForVendor!.UUIDString
As you see it's the same UDID received from SDK.
But in any case most important issue that I have duplicated notifications that I can see seems only on iPhone 6 plus.
Thanks
@matrosovDev I've tested subscribing and unsubscribing on device iPhone 6 iOS 9.3.2 on your server and I haven't caught this error.
let's skip subscribe and unsubscribe issue, the main issue for now it's duplicated issues, though that may connected to subscribe/unsubscribe issue.
You said and I figured out that double notifications is Apple bug, so how can we fix it?
I resolved apple bug, because we don't need to use device token twice as I shared with link above, though the issue with duplicated push notification is still there.
I fixed Apple bug, but not an issue.
Hi @matrosovDev
In order to understand this issue we require a full logs from app start till the error occurs. Those logs should contain successful subscribe and unsuccessful unsubscribe requests.
@matrosovDev do you have any updates? Were you able to fix this?
I am also getting same issue. The control is coming back two times in error block.
I faced with duplicated notifications issues.
So when I tested it all was subscribed with success but not on all devices but on iPhone 6 plus 9 iOS 9.2.1 (and other 9+).
but I got error:
Thanks for help