Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The Totara Mobile app uses Firebase Cloud Messaging (formerly known as Google Cloud Messaging) to deliver push notifications to registered devices. 

...

  1. Go to the Firebase console.

  2. In the centre of the project overview page, click the iOS icon to launch the setup workflow.

    Screenshot of project overview page.
  3. If you've already added an app to your Firebase project, click Add app to display the platform options.

  4. Enter your app's bundle ID in the iOS bundle ID field - make sure to enter the bundle ID that your app is actually using. The bundle ID value is case-sensitive, and it cannot be changed for this Firebase iOS app after it's registered with your Firebase project.

    • XCode Bundle IDImage RemovedXCode Bundle IDImage Added
    • Image RemovedImage Added
  5. Optionally you can enter other app information; App nickname and App Store ID.

  6. Click Register app.

Downloading and installing the google services plist file

  1. Click Download GoogleService-Info.plist to obtain the Firebase iOS config file (GoogleService-Info.plist).

  2. Replace the sample GoogleService-Info.plist in the iOS folder.

iOS Google service plist location

...

  1. Click Download google-services.json to obtain your Firebase Android config file (google-services.json).

    Image RemovedImage Added
  2. Move your config file into the module (app-level) directory of your app.

...

Info

This is a direct test from Firebase to your device. For testing the full push notification stack, including AirNotifier, see Testing push notification from Totara below.

  1. Install and run the app on the target device.

  2. Make sure the app is in the background on the device.

  3. Open the FCM Notifications composer and select New notification.

  4. Enter the message text.

  5. Select Send test message.

  6. In the field labelled Add an FCM registration token, enter the registration token you obtained in a previous section of this guide.

  7. Click Test

...

  • Verify if notifications permission is allowed on the device:

    1. Go to Settings and find the Totara app.

      Image RemovedImage Added



    2. Verify if notifications are allowed.

      Image RemovedImage Added



    3. Make sure you have allowed the Totara app to send you notifications when you first installed it.

      Image RemovedImage Added

If you are extending/customising the Totara Mobile app

...