iOs apps needs to know if the user accepts Push Notifications

Comments

1 comment

  • Avatar
    Sergey Polshcha

    You can do it yourself with the help of this code:

    UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
    
    if  (types & UIRemoteNotificationTypeAlert)  {
        NSLog(@"Notification Enabled");
    }
    else {
        NSLog(@"Notification not enabled");
    }
    

Please sign in to leave a comment.