-
Notifications
You must be signed in to change notification settings - Fork 380
Description
What happened?
Problem Description
Users on Huawei devices are consistently showing as "Not Subscribed" when using our React Native application with the OneSignal SDK. This functionality worked correctly in the past. We have followed the official OneSignal documentation for Huawei push authorization (https://documentation.onesignal.com/docs/authorize-onesignal-to-send-huawei-push).
Steps Taken & Observations
-
Followed OneSignal Huawei Push Documentation: We have ensured all steps outlined in the OneSignal guide for Huawei push authorization have been followed.
-
Previous Working Configuration: We previously had the following configurations in our
android/build.gradle
andandroid/app/build.gradle
files which allowed Huawei push to function. This configuration is no longer mentioned in the OneSignal documentation, so we have removed it.android/build.gradle
(previously):buildscript { repositories { google() mavenCentral() maven { url '[https://developer.huawei.com/repo/](https://developer.huawei.com/repo/)' } // <- previously required } dependencies { classpath 'com.android.tools.build:gradle:7.0.4' classpath 'com.huawei.agconnect:agcp:1.6.0.300' // or newer version } }
android/app/build.gradle
(previously):apply plugin: 'com.huawei.agconnect' dependencies { implementation 'com.huawei.hms:push:6.10.0.300' // recent version }
-
Current State: With orWithout the above configurations, Huawei devices show "Not Subscribed" status on OneSignal Dashboard .
-
Other Platforms: Push notifications are working without issues on both iOS and standard Android devices.
Expected Behavior
Huawei devices should be able to subscribe and receive push notifications as they did previously.
Additional Information
- React Native Version: 0.73.11
Is there a crucial configuration step for Huawei push that I might be overlooking in the current OneSignal documentation, or has the required setup changed? Any guidance on how to re-enable push notifications for Huawei users would be greatly appreciated.
Steps to reproduce?
Followed OneSignal Huawei Push Documentation and try to subscribe an user on Huawei
What did you expect to happen?
User is subscribed
React Native OneSignal SDK version
5.2.12
Which platform(s) are affected?
- iOS
- Android
Relevant log output
Code of Conduct
- I agree to follow this project's Code of Conduct