Android build configuration
How to configure your Android build for push notification?
AppMySite empowers you to send push notifications from within your app dashboard. To send notifications for your app, it is mandatory to configure your app build. Here’s a step-by-step guide on how to set it up for Android:
Step 1
Navigate to the Notification Build Settings screen.
Turn the toggle on depending on the type of notifications you would like to configure the app build for: plain notifications , rich notifications or both.
Click on Generate in the SHA-1 key field.
Step 2
Navigate to Google Firebase and create a new project, if you haven’t already created one during the iOS build configuration process. Refer to the guide to learn how to create a Firebase project.
On the Project Overview screen, click on Add app and select Android.
Next, you’re required to enter your app package name. Navigate back to your AppMySite app dashboard and copy your Android app’s package name.
After adding your package name, enter a nickname for your app.
Paste the SHA-1 key you generated earlier on the Build Settings screen on AppMySite.
After proceeding to the next step, download the google-services.json file. Click on next again to complete the process.
Next, click on the gear icon next to Project Overview and select Project settings.
Navigate to the “Service accounts” tab.
Click on Generate new private key. Make sure node.js is selected. The key would be downloaded as a json file.
Step 3
Navigate back to the Build settings screen in your AppMySite account.
In the Google Firebase configuration field, upload the google-services.json file.
In the Google Firebase Service Account field, upload the json key file.
Click on Save to finish.
Create a new build of your Android app once the configuration is complete. If you only want to enable plain notifications, you’re not required to generate the SHA-1 key.
Last updated