Date: Thu, 28 Mar 2024 15:16:32 +0000 (UTC) Message-ID: <1700179497.7.1711638992140@259b65570506> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_6_475208209.1711638992139" ------=_Part_6_475208209.1711638992139 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
To receive push notifications on an Android device, an app must have the= correct Google Cloud Messaging (GCM) credentials. Essentially, you n= eed to take some data from the MobileSmith platform and put it into the GCM= platform, as well as take some data from the GCM platform and put it into = the MobileSmith platform.
You will need to have a Google account.
In the MobileSmith platform, login and look at your list of projects. &n= bsp;Find the desired project and copy the Package ID.
Go to this link: https://developers.google.com/m= obile/add
Login with your Google account (if not already logged in).
Click "Pick a platform".
= p>
Click "Android App"
For "App name", you can enter whatever name you want, although it usuall= y makes sense to name it the same or similar to your MobileSmith Project Na= me, especially if you have created or plan to create multiple projects in t= he MobileSmith platform.
=
For "Android package name", paste in the Package ID you copied from the = MobileSmith platform.
Click "Choose and configure services"
Click "Cloud Messaging".
= p>
Click "ENABLE GOOGLE CLOUD MESSAGING".
You should see a success message informing you that Cloud Messaging has = been enabled for your app. Scroll down and find the "Server API Key" = and the "Sender ID" - these are two of the three parts you will need to put= into the MobileSmith platform.
Copy the "Server API Key" (red box)
Copy the "Sender ID" (green box)
Click "Generate configuration files".
Click "Download google-services.json" and save the file.
**NOTE** Do= not change the filename - it must be "google-services.json"
Now you have all three parts! Go back to the MobileSmith platform = and edit your project.
Go to App Stores > Push Credentials.
For "Configuration file", click the "Add" button and select the file you= just downloaded from Google. (the filename should be "google-services.json= ")
For "Server API Key" and "Sender ID", paste in the values you copied ear= lier from Google.
=
Click the green "Add" button to save your changes.
Your app is now ready to receive push notifications on Android devices!<= /p>