The Totara Mobile app uses Firebase Cloud Messaging (formerly known as Google Cloud Messaging) to deliver push notifications to registered devices.
...
Go to the Firebase console.
In the centre of the project overview page, click the iOS icon to launch the setup workflow.
If you've already added an app to your Firebase project, click Add app to display the platform options.
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.
Optionally you can enter other app information; App nickname and App Store ID.
Click Register app.
Downloading and installing the google services plist file
Click Download GoogleService-Info.plist to obtain the Firebase iOS config file (
GoogleService-Info.plist
).Replace the sample GoogleService-Info.plist in the iOS folder.
iOS Google service plist location
...
Click Download google-services.json to obtain your Firebase Android config file (
google-services.json
).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. |
Install and run the app on the target device.
Make sure the app is in the background on the device.
Open the FCM Notifications composer and select New notification.
Enter the message text.
Select Send test message.
In the field labelled Add an FCM registration token, enter the registration token you obtained in a previous section of this guide.
Click Test
...
Verify if notifications permission is allowed on the device:
Go to Settings and find the Totara app.
Verify if notifications are allowed.
Make sure you have allowed the Totara app to send you notifications when you first installed it.
If you are extending/customising the Totara Mobile app
...