Google Cloud Messaging (GCM) has been rebranded to Firebase Cloud Messaging (FCM). Urban Airship apps using GCM today should experience no issues, but Google strongly recommends that you upgrade your Android push notification transport system to Firebase as soon as possible.
Get Your API Key
In order to configure your Urban Airship application for FCM, you must first obtain an API key from Google.
- Log in to the Firebase console.
If you already have a Firebase project, open it now and skip to step 3.
- Click the Add project button, enter a project name in the
window that opens, then click the Create Project button.
- In the left side menu, click the gear icon next, then select Project
- Select Cloud Messaging from the options at the top of the screen, then copy the Server key and Sender ID values for use in the Urban Airship SDK step below.
Urban Airship Steps
Configure the Android Service
- Choose your project from the
Urban Airship dashboard,
click the Settings dropdown menu, then click Platforms.
- Click the Configure button for Android, enter the API key from the
completed Google Steps and the Firebase
- Click the Save button, or cancel to discard.
For more information about configuring your project, as well as how to use the Urban Airship web application, see the Engage dashboard documentation.
Configure the UA SDK
To send notifications, you must integrate the Urban Airship SDK into your Android application. See: Android: SDK Installation.