isPushwooshMessage

open fun isPushwooshMessage(remoteMessage: RemoteMessage): Boolean

Checks whether a Huawei Mobile Services message was sent through Pushwoosh.

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



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

Return

true if the message was sent via Pushwoosh; false otherwise

Parameters

remoteMessage

Huawei Mobile Services remote message to check

See also