Problem:
The app doesn't appear on notification center and it is unable to receive push notifications right after installation completes and the app registers for push notifications via registerForRemoteNotificationTypes:
.
Details:
registerForRemoteNotificationTypes
each time a user logins and each time a user logouts respectively with bit masks (UIRemoteNotificationTypeAlert | UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound
) and UIRemoteNotificationTypeNone
.enabledRemoteNotificationTypes
returns correct values.unregisterForRemoteNotifications
on logout but I changed it to registerForRemoteNotificationTypes:UIRemoteNotificationTypeNone
due to suspicians that this could be causing the problem .Any thoughts and advices will be greatly appreciated. Thank you!
This was happening to some of my devices. (Not showing up in notification center and not receiving pushes.)
Managed to fix it by doing:
For us, it didn't work immediately, so give it a few minutes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With