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

  1. Go to https://developer.apple.com/account/resources/authkeys/list

  2. Click the + button to create an auth key

  3. Enter a name

  4. Check the Apple Push Notifications service (APNs) box

  5. Click Continue

  6. Download the generated auth key

  7. Remember the Key ID (you will use it as Key ID in Firebase)

  8. Go to your Firebase project of your app

  9. Click the cog icon in top left of the screen under the Firebase logo

A popup menu opens

  1. Click Project Settings

  2. Go to the Cloud Messaging tab

  3. Inside the iOS app configuration table

  4. Under iOS apps

  5. Find the app with the same Bundle ID that you created earlier (for example com.example.app)

  6. Click the corresponding app to choose it

  7. Find the APNs Authentication Key entry

  8. Click the Upload button

  9. A modal will open with the title Upload APNs auth key

  10. Upload the auth key you downloaded from Apple

  11. Key ID: use you noted down earlier when you downloaded you key from Apple https://developer.apple.com/account/resources/authkeys/list

  12. Team ID: use your Apple Account Team ID

  13. Hit the Upload button

  14. Your iOS app can now receive push notifications