Push Notifications on iOS

This guide provides a step-by-step guide for enabling push notifications on iOS.

Once configuration provided here is completed, BeDrive will notify users of some events automatically (for example, workspace invitations), but you can also send custom notifications from Firebase site, Enagage -> Cloud Messaging section.

Creating firebase project

  1. If you don't have a firebase account already, register for one here.

  2. Follow step 2 and step 3 from Firebase CLI Guide to install firebase CLI and configure firebase. When prompted select "android" and "iOS". This will automatically create new projects on Firebase and create required files with configuration keys.

Configuring Xcode

  1. Open Xcode, Open Signing & Capabilities page, click + Capability button and double click Push Notifications.

Downloading APN key file

  1. Open your account page on apple developer site.

  2. Select Certificates, Identifiers & Profiles.

  3. Select Keys in the left menu and click + button to create a new key.

  4. Enter key name (can be anything), select Apple Push Notifications service (APNs), click Continue and then Register.

  5. Click Download button to download the key file. Make sure to keep this file safe as it can't be re-downloaded.

Uploading APN key file to firebase

  1. Open your firebase project settings page and select Cloud Messaging.

  2. Under APN Authentication Key, click Upload button, then click Browse and select key file you've downloaded earlier.

  3. in Key ID field enter the back part of key file name.

  4. For Team ID field, hover over ? button, click on the link in popup that opens up and you should be able to see it in the new browser tab that opens up.

  5. Copy/Paste the Team ID and click Upload button (might need to click upload button a few times).