Getting Credentials and Setting Up Connection to APNs
Before you begin, make sure this step is completed successfully:
Expected result of the āGetting Credentials and Setting Up Connection to APNsā step:
- APNs credentials for the mobile app have been obtained.
- The bundle ID, team ID, key ID, and token have been added to the Apple Push Notification service (APNs) connection settings of the previously created iOS integration point.
When enabling mobile push notifications for anĀ iOS app, you will need aĀ keychain ofĀ four keys:
- Bundle ID;
- Team ID;
- Key ID;
- Token (file with the
.p8Ā extension).
You can obtain them through your Apple Developer Account or from the settings of your current push notification provider.
Creating an APNs Key
How to get the Key:
-
Open the Apple Developer console atĀ https://developer.apple.com/account/.
-
GoĀ toĀ Certificates, Identifiers & Profiles ā Keys.

-
Click the "+" button.

-
Type inĀ the key name and tick Apple Push Notifications service (APNs). The other boxes are optional for push notifications.

IfĀ youāre unable toĀ tick APNs when creating aĀ token
Apple limits the number ofĀ certificates you can use toĀ connect toĀ APNs. Therefore, when unable toĀ generate new tokens from your own account, open one ofĀ your current tokens, revokeĀ it, and re-generate.

AsĀ aĀ result, you will get:
- AĀ 10-char Key IDĀ string;
- AĀ text file (
.p8) with your Authentication Token.

- Copy the values of the Key ID and authentication token into the Apple Push Notification service (APNs) connection settings of the previously created integration point.
Store your token inĀ aĀ safe placeThe Apple website gives you aĀ single try toĀ download your token, soĀ store itĀ securely toĀ avoid having toĀ re-generate aĀ new one.
Bundle IDĀ and Team ID
Next, you need toĀ get aĀ Bundle IDĀ and Team ID:
- GoĀ back toĀ the Apple Developer account homepage: https://developer.apple.com/account/.
- GoĀ toĀ Certificates, Identifiers &Ā Profiles.
- GoĀ toĀ the Identifiers tab.

The Identifiers tab
- Find the app name and openĀ it.
- Copy the values ofĀ your App IDĀ Prefix and BundleĀ ID, available inĀ the right column into the Apple Push Notification service (APNs) connection settings of the previously created integration point.

Bundle IDĀ and Team ID
Integration settings
Enter Bundle ID, Team ID, Key ID and token into the Apple Push Notification service (APNs) connection settings for the integration point you created earlier Setting upĀ Integration Points [iOS].

Updated 7 months ago

