Alize Dronna
Alize Dronna

Reputation: 197

Huawei Push Kit Notification Message key/value is null in Android

I have implemented Huawei Push Kit to my application. Data messages have been processed by implementing HmsMessageService.

The notification message delivered to the device very well, but when you tap the notification, key/value value that you actually entered is displayed as null. I have set name of theintent filter exactly same with the string on the Console. At the bottom, payload and value are displayed as null even though I filled it from the console. What might be the problem?

In addition, the value was fetched via getIntent from onCreate where the activity started. However, getIntent() is not null.

Console

enter image description here

Upvotes: 1

Views: 602

Answers (1)

Ibrahim R Serpici
Ibrahim R Serpici

Reputation: 1076

I believe the phone you are using for receiving the push messages are not meeting with the minimum data message requirements.

push restriction

Here is a official link about restrictions : Documentation

Upvotes: 1

Related Questions