Use this tag for programming questions relating to HUAWEI push kit. It is one of the services provided by HUAWEI HMS Core for developers. HUAWEI Push Kit is a messaging service provided for developers. It establishes a messaging channel from the cloud to devices.
Questions tagged [huawei-push-notification]
97 questions
3
votes
3 answers
Unable to get Notifications on Huawei devices with HmsMessageService (HMS push kit)
I am using HMS push kit to get notification. Notifications were working fine about 1 week ago, but now when I re run that code, it is not working.
I cross checked all the things but unable to find anything.
Dependency which I am using…

Faizan Ahmad
- 352
- 4
- 20
3
votes
1 answer
Crash Executing Android APP targeting API 31 with Huawei HMS Base 6.1.0.302 on Android 12
I have updated my application for target API 31 and now i am having crashes in runtime when executing only in phones with Android 12. The crash is:
E/AndroidRuntime: FATAL EXCEPTION: HuaweiApiManager
Process: com.example.myapp, PID: 4873
…

Antonio Aponte
- 47
- 1
3
votes
1 answer
Is there a best practice integration of Braze with push_kit HMS - Flutter
Do you know if there is any best practice or steps to follow to integrate Braze SDK with Huawei push_kit into a Flutter project?

jjsebastianfuertes
- 53
- 1
- 5
3
votes
2 answers
Huawei Push Kit API - get Push Id from rest Api
I am trying to send notifications to my android app via HMS push with Rest api.
The system works, but I can't find an api to find the Push Id (Token).
{
"validate_only": false,
"message": {
"notification": {
"title":…

Luca Parlapiano
- 115
- 7
3
votes
1 answer
How to use the device token to send downlink message
After checking the official document, the device_token can not be used for hms_server to send downlink message. If i want to access hms_server, i must request another oauth2 token. Is it mean both the device_token and hms_server_token should be…

ccd
- 5,788
- 10
- 46
- 96
3
votes
1 answer
Is it possible to write all client information to only one agconnect-services.json file?
I want to use Push Kit and I use product flavors in my project. There are 4 different build variants and package names in my project.
Package Names:
variant: blueDebug - package_name: com.omfaer.pflavors.blue.debug
variant: blueRelease …

omfaer
- 184
- 3
- 16
3
votes
1 answer
HMS Push plugin - how to receive data message when the app is in killed state
Android - Huawei with HMS push plugin, HmsPushEvent.onRemoteMessageReceived this event was not triggered when app is in killed state. This event only getting called while app is in foreground and background state. Can you please tell which event…

Senthil Ssk
- 78
- 7
2
votes
1 answer
Huawei mobile services push kit 907122036: no right API call
I want to use the Push Kit.. is there something wrong with my configuration or setup?
Environment :
Phone model (Settings > About phone): ANA-NX9 Huawei P40.
EMUI version (Settings > About phone): 11.0.0
HMS Core version number(Settings > Apps >…

KirubaPradeep
- 287
- 1
- 7
2
votes
3 answers
How to validate a Huawei X-HW-SIGNATURE?
How can I validate a X-HW-SIGNATURE in PHP?
The documentation for request parameters reads:
Message header signature, which is mandatory, indicating the
signature information sent to your server that receives uplink messages.
There's also example…

Martin Zeitler
- 1
- 19
- 155
- 216
2
votes
2 answers
HMS getToken returns null if app is installed from APPGALLERY
I build an app. I am using the HMS Push kit for notifications. It is working fine if I build apk and install it on a device directly. But if I install this app from Huawei AppGallery, it returns a null token to me.
To get Token I wrote this code:
…

Faizan Ahmad
- 352
- 4
- 20
2
votes
1 answer
How to judge the remoteMessage type
I want to know the remoteMessage from HmsMessageService is a message data with or without notification, how to judge the difference between them?
public class HmsService extends HmsMessageService {
@Override
public void…

ccd
- 5,788
- 10
- 46
- 96
2
votes
1 answer
Flutter. Future should wait for callback
I am implementing Huawei push notifications in Flutter.
Here: https://pub.dev/packages/huawei_push/example
I'd like to be able to have a way of calling this:
String? token = await PushNotificationsService().getPushNotificationsToken();
from my code…

AndreiBogdan
- 10,858
- 13
- 58
- 106
2
votes
2 answers
Why Huawei Push Kit is not working after publishing app?
I build an app for Huawei devices in which Push Kit is implemented successfully. I published that app to App Gallery.
After downloading my app from App Gallery, Push Notification is not working.
But when I am running that app from my own system…

Faizan Ahmad
- 352
- 4
- 20
2
votes
1 answer
huawei push kit: getToken return unknown error code
When I try to get use getToken method, it return the 907122050 error code, what is that mean?
try {
token = HmsInstanceId.getInstance(context).getToken(appId, defaultScope);
} catch (ApiException e) {
CoreLogger.e("getToken…

ccd
- 5,788
- 10
- 46
- 96
2
votes
1 answer
Flutter app which uses huawei_push rejected by Google Play Store
I want to use huawei_push kit in my flutter app but Google Play Store rejected my app because of PendingIntent issues (security rules). I want to use the same source code for Google Play Store and Huawei App Gallery. I was thinking of:
building APK…

Krzysztof Mamak
- 53
- 1
- 5