Enable push notifications
Overview
In order to enable push notifications fort your IOS app, you need to acquire an authorization key and add it to the Firebase project configured for your app.
Push notifications
-
Go to https://developer.apple.com/account/resources/authkeys/list
-
Click the + button to create an auth key
-
Enter a name
-
Check the Apple Push Notifications service (APNs) box
-
Click Continue
-
Download the generated auth key
-
Remember the Key ID (you will use it as Key ID in Firebase)
-
Go to your Firebase project of your app
-
Click the cog icon in top left of the screen under the Firebase logo
A popup menu opens
-
Click Project Settings
-
Go to the Cloud Messaging tab
-
Inside the iOS app configuration table
-
Under iOS apps
-
Find the app with the same Bundle ID that you created earlier (for example
com.example.app
) -
Click the corresponding app to choose it
-
Find the APNs Authentication Key entry
-
Click the Upload button
-
A modal will open with the title Upload APNs auth key
-
Upload the auth key you downloaded from Apple
-
Key ID: use you noted down earlier when you downloaded you key from Apple https://developer.apple.com/account/resources/authkeys/list
-
Team ID: use your Apple Account Team ID
-
Hit the Upload button
-
Your iOS app can now receive push notifications