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
30
votes
4 answers
Google denied update due Remediation for Implicit PendingIntent Vulnerability
When i'm trying to update my app - i got error during review process. Remediation for Implicit PendingIntent Vulnerability - https://support.google.com/faqs/answer/10437428. In my app there is on place, where i'm creating PendingIntent - for…

Евгений Кравцов
- 1,203
- 1
- 14
- 30
10
votes
5 answers
Why can't I get pushToken by using Huawei Push Kit?
I am using following code snippet, however I still can't get the pushToken.
private void obtainToken() {
// get token
new Thread() {
@Override
public void run() {
try {
String appId =…

Irene Li
- 101
- 1
- 1
- 3
9
votes
2 answers
Huawei push kit: Token returns empty on Huawei phone
I recently tried my app on a Huawei phone.
The problem is PushKit does not return a token and getToken result is empty.
In the log I get GetTokenTask receive a empty token, please check HmsMessageService.onNewToken receive result., but there is not…

Mahdi-Malv
- 16,677
- 10
- 70
- 117
8
votes
1 answer
Huawei Push Kit - com.huawei.hms.common.ApiException: 6003: certificate fingerprint error
I received a "push token failed, com.huawei.hms.common.ApiException: 6003: certificate fingerprint error." I don't know what's going on here.

Zinna
- 1,947
- 2
- 5
- 20
7
votes
2 answers
how to push notification in China?
I'm working with react-native in Hong Kong but my target country is China.
I need to handle push notifications in China
Anyway, can help me push notifications for Android and Huawei without GCM?
Thanks everybody!

trần bình
- 71
- 2
7
votes
3 answers
HmsMessageService onMessageReceived not called
I implemented Huawei Push Kit. onNewToken is called after app started. I want to use onMessageReceived.
When I send push notification to client, push notification appears on android but onMessageReceived is not triggered.
I added below codes to…

adenizc
- 411
- 3
- 8
7
votes
2 answers
Huawei HMS initialize without Json file
Is it possible to initialize HMS without a agconnect-services.json and provide the keys at runtime?
Using a similar service (Fcm) we can initialize an app:
val builder = FirebaseOptions.Builder()
.setApiKey(apiKey)
…

Mahdi-Malv
- 16,677
- 10
- 70
- 117
6
votes
2 answers
Class "AGConnectServicesConfig" is deprecated in com.huawei.hms:push:5.3.0.301
When I updated the pushSDK to the version "5.3.0.301", I found AGConnectServicesConfig was deprecated. I want to know what is the substitute for it. How can I get app_id in the new version?
I used to get app_id like this:
String appId =…

Shadowself
- 63
- 4
5
votes
1 answer
Flutter project fails to build after adding huawei agconnect
After adding 'com.huawei.agconnect' plugin my flutter project fails to build:
FAILURE: Build failed with an exception.
What went wrong: Execution failed for task
':app:processDebugResources'. failure occurred while…

rebellion
- 61
- 4
5
votes
2 answers
When will Push Kit include the android:exported attributes required for Android 12?
The latest version of Push Kit (5.3.0.304) displays an error when compiling targetting Android 12:
Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED:
Failed parse during installPackageLI:
/data/app/vmdl520427088.tmp/base.apk (at…

JaviDran
- 79
- 1
- 5
4
votes
1 answer
If a Huawei device is supporting both GMS and HMS core then why HMS core is not working?
I am developing an app for android, on Huawei devices I am facing many issues. I am using FusedLocation and Notifications in my app due to which I had to develop another app for Huawei devices as many Huawei devices are not supporting GMS now.
I am…

Faizan Ahmad
- 352
- 4
- 20
4
votes
1 answer
Huawei push sdk for Android target 31
current version sdk push for Android crashes in 31 target sdk. Need to mark exported manifest dependencies to bump New build rules.
When will New version with support target sdk be released?

Denis A
- 41
- 1
4
votes
3 answers
How do I get 'onMessageReceived' to trigger on Notification (HMS Push Kit) in React Native?
I'm trying to read the payload of my notifications, but the event won't trigger. It works fine for Data messages, but doesn't seem to notice notifications.
AndroidManifest:

Radu Iamandi
- 65
- 3
- 6
3
votes
3 answers
failed resolution of: Lcom/huawei/hms/framework/common/EmuiUtil
I'm implementing push notification in Huawei devices and I've got this exception while trying to get token. And this this because of this line:
Client =…

Yasmine Abdelsamie
- 51
- 6
3
votes
3 answers
Huawei. Obtain data(title, body, sentTime) from notification by using Push Kit. Xamarin Forms
Im trying obtain data from notification, when my app is closed and when app is just in background. I get notification, tap on it, and in MainActivity(from android project) i want to obtain data.
I can do it when my app is open, by HmsMessageService…

Jack The Healer
- 116
- 10