Huawei Cordova SDK Setup
OneSignal Huawei Cordova Setup Guide
1. Cordova OneSignal SDK Setup
Follow the Cordova SDK Setup instructions.
2. Huawei Setup
- 2.1 Device and Android SDK Setup
- 2.2 App Configuration
- 2.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 theAndroidManifest.xml
.
- When following the plugin setup after downloading the plugin. Change the downloaded plugin's

3. Huawei Location Service (Optional)
- 3.1 Add
implementation 'com.huawei.hms:location:<HUAWEI HMS VERSION #>
to your app build.gradle's dependencies section. - 3.2 Make sure to also add the location permission to your AndroidManifest.xml if you don't have this already

Notes/Resources
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 almost 2 years ago