How to check that notification is enabled on iPhone? I install the application, application say to confirm enable push notification for application, i click ok. But if notification disabled on iPhone, this action does not enable notifications. How to check that?
This should work:
UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
if (types == UIRemoteNotificationTypeNone)
// Disabled
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