onesignal-expo-plugin icon indicating copy to clipboard operation
onesignal-expo-plugin copied to clipboard

[question]: Is Huawei Push Notification supported under Expo?

Open metadevj opened this issue 1 year ago • 1 comments

How can we help?

Is Huawei Push Notification supported under Expo as per https://onesignal.com/blog/announcing-huawei-hms-support/?

OneSignal's HMS support is live, including an updated Android SDK release and releases of wrapper SDKs including Unity, Flutter, React Native, Expo, Ionic, Cordova, and others. The Android SDK will automatically register the device as Google FCM if the device supports FCM, otherwise, it will register the device to HMS if the Huawei Push Kit is installed.

Currently my HMS devices are not subscribed seemingly due to a missing Push Token.

image

Object {
  "hasNotificationPermission": true,
  "isEmailSubscribed": false,
  "isPushDisabled": false,
  "isSMSSubscribed": false,
  "isSubscribed": false,
  "userId": "367ea3c2-8d35-492d-xxxxxxxxxxxxxxxxxxxxxx",
}
IN getQrCodeObservable
Results of setting external user id: 06072820-4215-4033-xxxxxxxxxxxxxxx oneSignalToken:199a945da5ffe3xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Object {
  "push": Object {
    "success": true,
  },
}
Results of setting external user id push status:
true

How do we add the Huawei dependencies and signing keys to EAS build workflow as per: https://documentation.onesignal.com/docs/huawei-react-native-sdk-setup

OneSignal Expo SDK version

1.1.1

Platform

Android

Relevant log output

No response

Code of Conduct

  • [X] I agree to follow this project's Code of Conduct

metadevj avatar Sep 15 '22 10:09 metadevj

Hi @metadevj, the OneSignal SDK itself supports HMS but how to configure expo EAS build to deploy to a Huawei device is certainly fuzzy. I found this article that might help, I'll see if I can get confirmation/steps for you!

brismithers avatar Sep 19 '22 13:09 brismithers