Connecting the AppMetrica Push SDK

The Push SDK for Android is a library in the AAR format. The library is available in the Maven repository.

Since the AppMetrica Push SDK version 1.0.0, it uses the Firebase Cloud Messaging (FCM) service to send push notifications.

This section describes the steps to enable and initialize AppMetrica Push SDK:

  1. Step 1. Prepare your app
  2. Step 2. Enable the library
  3. Step 3. Initialize the library
  4. Step 4. Configuring Silent Push Notifications
  5. Step 5. (Optional) Enable push tokens update
  6. Sending additional information
  7. Detecting the application launch via push notification
  8. Setting the default icon

Step 1. Prepare your app

Before integrating the AppMetrica Push SDK library, prepare your app:

  1. Integrate the AppMetrica SDK library at least version 3.0.0.
  2. Add Google Play Services to the project.