1

I'm currently using onesignal-cordova-plugin v2.10.1 in my ionic android app for push notifications. Now we are planning to support the android app in Huawei App Gallery using the same One Signal push notifications. What I need to do specifically with this requirement?

  1. In One Signal settings, configure Huawei Android (HMS) Configuration. enter image description here
  1. Can I still use one-signal-cordova-plugin or I have to use new plugin cordova-plugin-hms-push?
Lily.T
  • 123
  • 3
  • 14

1 Answers1

0
  1. About Huawei Android(HMS) Configuration Before you start developing an app, you must register as a Huawei developer and complete identity verification on HUAWEI Developers. Create an app in AppGallery Connect, and get the information about APP ID and APP SECRET.

The basic process is as follows:

1). Log in to the HUAWEI Developer official website and rgister as a developer.

2). Sign in to AppGallery Connect and click My apps.

3). Click New app on the right of the page.

4). Fill in the app information and click OK. The app information page is displayed.

  1. You need to use HMS Cordova Push Plugin. Your app integrated with the Push SDK to obtain a push token, and sent the token to OneSignal SDK. OneSignal uses the token to send the messages to devices and the devices receive the messages.
zhangxaochen
  • 32,744
  • 15
  • 77
  • 108
  • How can I test whether the push notifications and other features are working fine in Huawei phone without google play services if I don't have any physical Huawei device? – Lily.T Dec 23 '20 at 04:23
  • @Lily.T You can use [Cloud Debugging](https://developer.huawei.com/consumer/en/doc/development/AppGallery-connect-Guides/agc-clouddebug-realtimedebug) to debug an app on a real device. Please kindly refer to this answer [Android Virtual Device for Huawei Mobile Services](https://stackoverflow.com/a/63877454/13329100) – zhangxaochen Dec 23 '20 at 06:02
  • can I know is there any restriction for devices in cloud debugging to receive push notifications from one signal? – Lily.T Mar 08 '21 at 03:41
  • It is recommended that you use an Android 10 or later phone. And do not use an emulator. – zhangxaochen Mar 09 '21 at 01:04