Breaking News
Home / iOS / iOS FAQ / What are the different types of Remote Notification that an app can register in IOS?

What are the different types of Remote Notification that an app can register in IOS?

Answer

There are 3 different type of notifications that can app can register for:

  • Badge
  • Sound
  • Alert

The following code shows how to register for all three types using the callback method:

– (void)application:(UIApplication*)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData*)deviceToken
{

      // Let the device know we want to receive push notifications
[[UIApplicationsharedApplication] registerForRemoteNotificationTypes:
     (UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];

}

[pb_builder]

Check Also

How to remove an app from Sale in Appstore?

Solution In order to remove you app from SALE, you would have to log into …

Leave a Reply