I want to respect my users' intent and not call [[UIApplication sharedApplication] registerForRemoteNotificationTypes:(...)]
if they've turned off remote notifications for my app.
When calling UIRemoteNotificationType enabledTypes = [[UIApplication sharedApplication] enabledRemoteNotificationTypes]
, I get the info on what types of notifications are enabled for my app. However, the Notification Center for this app can be turned OFF and I still get the previously enabled notification type from this method until I select "None".
Thus my app thinks notifications are enabled even when they aren't.
Is there a way to programatically find out the Notification Center status for my app? (ON/OFF).
Don't confuse "in the notification center" with "push notifications enabled." I can remove an app from the notification center but still have it receiving push notifications in the form of badge numbers, so your old method should work fine.
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