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 ID
    • 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.

...

  • 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

...

Note

The site must have a working connection to push.totaralms.coman AirNotifier sever that is configured to forward notifications using your FCM account credentials.

  1. As site admin, go to Manage badges and create a new site-level badge.

  2. Set the criteria to ‘Manual issue by role’

  3. ‘Enable access’ to the new badge

  4. Create a new user

  5. As the user, open a fresh install of the Totara app and log into the site

  6. You should see a request for permission to send push notifications on your device – if you don’t see that, is this a fresh install of the app? Is AirNotifier enabled on the site?

  7. Once logged in, close the app by going to the home screen and locking your device

  8. As admin, go to ‘Recipients’ tab on the badge, and award the badge to your mobile user

  9. The push notification should arrive within a minute or two

...