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 Remote 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 Remote Notification Programming Guide.

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

Notification entitlement key
Capability

aps-environment

Receive push notifications in iOS

com.apple.developer.aps-environment

Receive push notifications in macOS

The entitlement key is different for iOS than it is for macOS. 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.