iOS configuration for plain notifications

How to configure my iOS build for plain push notifications?

To send plain notifications to your app users, you must first configure notifications in your app build. The sections below outline the process of configuring plain push notifications on your mobile app:

Step 1: Set up Firebase

  • Navigate to Google Firebase and create a new project, if you haven’t already created one during the Andoid build configuration process. Refer to the guide to learn how to create a Firebase project.

Create Firebase project
  • On the Project Overview screen, click on Add app and select iOS.

  • Next, you will be required to enter your Apple bundle ID. Navigate back to your AppMySite app dashboard and copy your Apple bundle ID.

  • Enter the bundle ID, give your app a nick name and enter your App Store ID. Then click on "Register app."

  • Download the googleservice-info.plist file.

  • Click "Next" until you reach the “Continue to console” button.

  • Next, click on the gear icon next to Project Overview and select Project settings.

  • Navigate to the “Service accounts” tab.

  • Click on Generate new private key. Make sure node.js is selected. The key would be downloaded as a json file.

Step 2: Generate APNs Key

  • Log in to your Apple developer account.

  • Click on Certificates, Identifiers & Profiles.

  • Navigate to the Keys screen. Click on the add(+) button to generate a new key.

  • To the Register a New Key screen, enter a key name.

  • Select the box next to Apple Push Notification services.

  • Click on Configure next to Sign in with Apple.

  • Choose your App ID from the dropdown and Save.

  • Next, click on Continue.

  • Select Register to register your new key.

  • Download your key. Keep in mind that Keys can only be downloaded once. Also, copy your Key ID.

Step 3: Upload APNs Key on Firebase

  • In the Firebase Project settings, go to the Cloud Messaging tab.

  • Click on Upload under the APNs Authentication Key section.

  • Browse and upload the key file you downloaded earlier from your App Store Connect account.

  • Paste the Key ID in the field you copied earlier.

  • To get your Team ID, navigate to Membership in your Apple developer account.

  • Copy your Team ID.

  • Paste it in the Team ID field on Google Firebase.

  • Click on Upload.

Step 4: Upload for build configuration

  • Navigate to the Notification Build Settings screen.

  • Turn the toggle on for plain notifications.

  • Upload the files in the relevant fields to configure your build.

  • Click on Save.

Once your build goes live, you can start sending plain push notifications to your app users.

Last updated