isPushwooshMessage

open fun isPushwooshMessage(remoteMessage: RemoteMessage): Boolean

Checks whether a Firebase Cloud Messaging message was sent through Pushwoosh.

Use this method to determine if an incoming FCM message should be handled by Pushwoosh or by another push notification provider. Example:



public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
    if (PushwooshFcmHelper.isPushwooshMessage(remoteMessage)) {
        PushwooshFcmHelper.onMessageReceived(this, remoteMessage);
    } else {
        // Handle other providers
    }
}

Return

true if the message was sent via Pushwoosh; false otherwise

Parameters

remoteMessage

Firebase Cloud Messaging remote message to check

See also