onMessageReceived
Processes incoming Firebase Cloud Messaging push notifications for Pushwoosh.
CRITICAL: Call this method from your custom onMessageReceived callback to let Pushwoosh handle its messages. Without this call, Pushwoosh notifications will NOT be displayed. Example:
public void onMessageReceived(@NonNull RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
// CRITICAL: Route Pushwoosh messages to Pushwoosh
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 and was successfully processed; false otherwise
Parameters
context
application or service context
remoteMessage
Firebase Cloud Messaging remote message
See also
FirebaseMessagingService#onMessageReceived(RemoteMessage)