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]