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