FCM Setup

Note

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.

Google Steps

Get Your API Key

In order to configure your Urban Airship application for FCM, you must first obtain an API key from Google.

  1. Log in to the Firebase console.
    Note

    If you already have a Firebase project, open it now and skip to step 3.

  2. Click the Add project button, enter a project name in the window that opens, then click the Create Project button.
  3. In the left side menu, click the gear icon next, then select Project settings.
  4. 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

  1. Open your project from the Urban Airship dashboard, then click Settings and select Platforms.

  2. Click Configure for Android, enter the API key from the completed Google Steps and the Firebase Package name.

  3. Click Save.

Next Steps

Configure the UA SDK

To send notifications, you must integrate the Urban Airship SDK into your Android application. See: Android: SDK Installation.

Tutorials