onMessageReceived
Processes incoming Huawei Mobile Services 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(RemoteMessage remoteMessage) {
super.onMessageReceived(remoteMessage);
// CRITICAL: Route Pushwoosh messages to Pushwoosh
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 and was successfully processed; false otherwise
Parameters
context
application or service context
remoteMessage
Huawei Mobile Services remote message
See also
HmsMessageService#onMessageReceived(RemoteMessage)