Enabling Push Notifications

To enable your app to alert the user through push (also known as remote) notifications, set a value for the appropriate entitlement.

For a complete discussion about push notifications, see Local and Push Notification Programming Guide.

Push Notification Entitlement Keys

You set a value for the push notification entitlement by way of your development and distribution provisioning profiles, as described in Local and Push Notification Programming Guide.

The following table shows the push notification entitlement keys that apply to the iOS and OS X platforms:

Notification entitlement key
Capability

aps-environment

Receive push notifications in iOS

com.apple.developer.aps-environment

Receive push notifications in OS X

The entitlement key is different for iOS than it is for OS X. On either platform, however, the provisioning portal assigns a value of development or production to the key, depending only on which activity you are creating the provisioning profile for.