MetricaMessagingService class

com.yandex.metrica.push.firebase

public class MetricaMessagingService extends FirebaseMessagingService

Methods of the class are used to configure simultaneous working push services: AppMetrica Push SDK and Firebase Cloud Messaging. For more information, see Using with Firebase.

Methods

void onMessageReceived(@NonNull final RemoteMessage message)

Called when a push notification is received from Firebase. For more information, see the method description FirebaseMessagingService.onMessageReceived.

void onNewToken(@NonNull String token)

Called when the system generates a new push token. For more information, see the FirebaseMessagingService.onNewToken(String token) method description.

void processPush(@NonNull final Context context, @NonNull final RemoteMessage message)

Sends information about push notification to AppMetrica Push SDK. AppMetrica automatically recognizes own messages and processes only them.

void processPush(@NonNull final Context context, @NonNull final Bundle data)

Sends information about push notification to AppMetrica Push SDK. AppMetrica automatically recognizes own messages and processes only them.

void onMessageReceived(@NonNull final RemoteMessage message)

Called when a push notification is received from Firebase. For more information, see the method description FirebaseMessagingService.onMessageReceived.

void onNewToken(@NonNull