Follow these instructions if your app is distributed on the Huawei AppGallery.
- A OneSignal Account.
- Your OneSignal App ID, available in Settings > Keys & IDs.
- Authorize OneSignal to Send Huawei Push
- A Huawei device with "Huawei App Gallery" installed.
Follow the OneSignal Cordova SDK setup guide. Firebase / Google setup not required for app builds released to the Huawei AppGallery.
3.1 Device and Android SDK Setup
3.2 App Configuration
3.3 Cordova Huawei Plugin
* When following the plugin setup after downloading the plugin. Change the downloaded plugin's
plugin.xml file to remove the CordovaHMSMessageService from the
implementation 'com.huawei.hms:location:<HUAWEI HMS VERSION #> to your app build.gradle's dependencies section.
4.2 Make sure to also add the location permission to your AndroidManifest.xml if you don't have this already
This is an example Cordova project integrating the Huawei Cordova Plugin.
HMS error code reference to help debug logs and successfully integrate HMS Core SDK with the OneSignal SDK.
Updated 6 days ago