Instance Method

registerForRemoteNotifications

Register for notifications sent by Apple Push Notification service (APNs).

Declaration

- (void)registerForRemoteNotifications;

Discussion

Call this method to register your app with APNs. When a valid connection is established, APNs sends a device token to your app delegate. Forward that token to your company's provider server.

For more information about how to register with APNs, see Registering Your App with APNs.

See Also

Managing Remote Notifications

- unregisterForRemoteNotifications

Unregister for notifications received from Apple Push Notification service.

enabledRemoteNotificationTypes

The types of push notifications that the app accepts.

- registerForRemoteNotificationTypes:

Register to receive notifications of the specified types from a provider via Apple Push Notification service.

registeredForRemoteNotifications

A Boolean value indicating whether the app is registered with Apple Push Notification service (APNs).

NSRemoteNotificationType

These constants determine whether apps launched by remote notifications display a badge.