isPushwooshMessage
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
}
}
Content copied to clipboard
Return
true if the message was sent via Pushwoosh; false otherwise
Parameters
remoteMessage
Huawei Mobile Services remote message to check