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 (directly from android studio), it is working fine.
Asked
Active
Viewed 456 times
2

Faizan Ahmad
- 352
- 4
- 20
-
1Agree with @[mohax](https://stackoverflow.com/users/3212712/mohax)'s answer, You are advised to check the fingerprints, and if that's all right, pls provide a detailed log for us to check. – zhangxaochen Sep 30 '21 at 01:13
-
I cross checked, SHA-256 key is correct, unable to find solution yet. When I am generating release apk locally, it is working perfect but when I am downloading it from Huawei App Gallery, notifications are not working. – Faizan Ahmad Oct 12 '21 at 07:24
-
hi@Faizan Ahmad, Could you mind provide the APK downloaded from the AppGallery for us to check this issue? you could send it to hmscore@huawei.com, also, It would be nice if you could reproduce the problem and provide complete log. – zhangxaochen Oct 13 '21 at 09:25
-
Okay I will, But I tested a lot, facing same issue yet. – Faizan Ahmad Oct 22 '21 at 11:54
2 Answers
2
Huawei is generating 2 SHA-256 keys, one locally. Second at App Signing module at developer account. After adding both SHA-256 keys, my issue was resolved.

Faizan Ahmad
- 352
- 4
- 20
1
99% that you use different signing keys. I.e. you've enabled signing of app by app gallery. So you have to add SHA-256 mentioned in AGC to project settings, where you have debug SHA-256 from AndroidStudio.

mohax
- 4,435
- 2
- 38
- 85