Firebase Configuration for Mobile Push Notification
A new workspace - FCM Configuration is added to ConfigDB. The following are its sections:
•Project Id: Project Id of the firebase which we going to configure in future step. This Id is used by the server to send the push notification.
•Server Key: Unique key that is present inside the firebase project. This key is used by the Server to send the push notification.
•Client configuration for Android: json configuration which is used by android mobile to generate FCM token. This configuration will be present in Firebase project we need to add in config Database.
•Client configuration for iOS: Configuration which used by iOS device to generate FCM token.
The following steps should be performed for Mobile Push Notification to work:

1.Navigate to https://firebase.google.com/ to create a new project. Since Firebase is from Google, you need to sign into your Gmail account so the Firebase project is associated with your Gmail account.
2.Navigate to firebase.com and click Go to console on the top right corner of the page.
3.Click the Create a project tile (for new Users) or Add Project (for existing users) in the Firebase.
4.Type the project name, select the I accept the firebase terms check box and click Continue.
5.Disable Google Analytics and click Create Project.

In this step, you will create iOS and Android app in the firebase project.
1.Navigate to the newly created project.
2.Click on the Android icon to create new Android app.
3.Enter the name of the package - it should always be com.ivanti.sm” in the Android Package name and enter any name in App Nickname. Ensure the package name is right and click on Register app.
4.Click on download google.service.json which is json configuration for Android. Download this file and click Next.
5.Skip Step 3 by clicking on Next – (Add Firebase SDK)
6.Click Continue to the console.
If you see “Run your app to verify installation” step then you can click on “Skip this step” and then click Continue to console.
Once all these steps are completed, you have the Android app ready in the Firebase project.
7.Now, do the same for iOS.
8.Click on Add app again in the Firebase project and select iOS.
9.Specify the same package name com.ivanti.sm in the iOS bundle ID, enter the App nickname and click on Register app.
10.Click on Download GoogleServiceInfo.plist which contains the configuration for iOS device. and click Next.
11.Skip Step 3 by clicking on Next – (Add Firebase SDK).
12.Skip Step 4 by clicking on Next – (Add Initialisation code).
13.Click Continue to Console in step 5.
If you see Run your app to verify installation step, click Skip this step and then click Continue to console.
Once these steps are completed, you have iOS and Android app configuration is ready in the Firebase.

Ivanti will provide the APNs Certificate for iOS app. You can find the certificate at Ivanti Market Place.
1.Click the Setting button from top left and click on Project settings.
2.Click the Cloud Messaging tab.
3.Scroll down to the APNS Authentication Key section and click the Upload button.
4.Browse to the AuthKey_V65XKX7498.p8 file.
5.Enter the following details:
•Key ID: V65XKX7498
•Team ID: B7FW4Y3UP6

1.Navigate to Project settings from the main page of Firebase project.
2.Navigate Cloud Messaging Copy the Sender ID.
3.Go to ISM CentralConfig, open FCM Configuration workspace and paste Sender ID which is copied to the Project ID in workspace.
4.Copy the Server Key from the Cloud Messaging tab.
a. | Under the Cloud Messaging API (Legacy) Disabled section, select the ellipses and the option Manage API in the Google Cloud console: |
b. | Select the Enable button for Cloud Messaging. |
c. | Go back to the browser where the console is open and refresh the browser. |
Under Cloud Messaging there should be a Server Key available.
5.Paste the Server Key in FCM Configuration workspace.
6.Copy the entire content from google-service.json which is downloaded from Step – 3 and paste in the Client Configuration for Android.
7.Finally, you need to add the iOS FCM configuration in config DB. Copy the entire content from GoogleService-Info.plist which is downloaded in step 3 and paste it in the Client Configuration for iOS and Save.