Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 
  • How to check Push Notification enabled in iOS

    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 0
    • 380
    Comment on it

    For your iOS application if you want to check Push Notification status then you can check it by using the below code:-


    in iOS 7

    1. UIRemoteNotificationType types = [[UIApplication sharedApplication] enabledRemoteNotificationTypes];
    2. if (types == UIRemoteNotificationTypeNone) {
    3. //Enable your Push notification here..
    4. }

    in iOS8

    1. if (![[UIApplication sharedApplication] isRegisteredForRemoteNotifications]){
    2. //Enable your Push notification here..
    3. }

    Happy Coding!!!

 0 Comment(s)

Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Reset Password
Fill out the form below and reset your password: