Huawei Cordova SDK Setup

OneSignal Huawei Cordova Setup Guide

1. Cordova OneSignal SDK Setup

Follow the Cordova SDK Setup instructions.

2. Huawei Setup

12281228

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
476476

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.