Setting up App Push on Android
Using the Notificare Android library will allow you to quickly implement push notifications in your app.
- The latest version of Android Studio
Before you can start sending messages to Android, you will have to at least set up an FCM project. This is done via the Firebase Developer Console. Keep reading this document to know how to configure your push provider platform.
Creating a FCM Project
In 2016, Firebase Cloud Messaging replaced the GCM (Google's Cloud Messaging) and became Android's official push provider. To be able to send notifications you currently need to create a project in Firebase.
Start by signing in Firebase. In their developer page you will find a button like this one:
This will open a page like this one, where you should provide a name for your project:
Firebase will generate an ID for you project, but you can also customize it:
Depending on the capabilities you want to add to your project, you might need to enable or disable some options.
After creating your project, you will automatically be redirected to the project area where you can find a button like this one:
In the project settings page you will find a tab for Cloud Messaging:
Service Account
For newly created apps, we recommend using the Firebase Cloud Messaging API. This API uses a Service Account which you can manage in the Google Cloud Console, by clicking in Manage Service Accounts:
In this page you will find a list of service accounts (Firebase should create one automatically, but you can always create new ones):
You should then click in the service account, and navigate to the Keys tab:
Go ahead and click in Add Key, which should open a window as the one below:
Select the JSON option and click Create. That should download a .json file to you computer.
Please provide this JSON file to the Actito team so they can finalize the configuration of your integration.
To share sensitive elements like the SDK files or keys for the Android/Huawei/iOS platforms, we use Actito's Transfer Box.
Once Actito have received the .json and finalized the integration, they will provide you with the SDK configuration file. Keep reading our Implementation guides located here.