Ionic Cordova项目在华为设备上无法正常工作,因为找不到HSM。

huangapple go评论106阅读模式
英文:

Ionic Cordova project not working for Huawei because HSM not found

问题

我有一个使用Ionic和Cordova构建的简单移动应用程序,我尝试将其发布到应用库,他们说:
您的应用已获批准。 ­备注:由于您的应用尚未与HMS集成,因此无法在HMS上使用或显示。如果需要集成HMS,请参阅:https://developer.huawei.com/consumer/en/doc/development/HMSCore-Library/android-sdk-download-0000001064112371
对于当前的项目,我使用了firebasex通知插件。

我应该如何继续?

英文:

I have a simple mobile app builded with Ionic and Cordova and I tried to publish to App Gallery and they said:

Your App has been approved. ­Notes: Since your App has not been integrated with HMS yet, It cannot be used or displayed on the HMS. If integration of HMS is needed, please refer to: https://developer.huawei.com/consumer/en/doc/development/HMSCore-Library/android-sdk-download-0000001064112371

For the current project I use firebasex notifications plugin.

How should I proceed?

答案1

得分: 1

以下是您要翻译的内容:

"看起来您的应用程序使用了Google库,没有使用华为库,并且在AppGallery中发布,只允许安装具有Google服务的用户。

每当您在AppGallery上上传的应用程序不显示在没有GMS(如P40)的手机上,它将不会显示在AppGallery中,但如果您有P30等手机,它将在AppGallery中显示。为了使您的应用程序对非GMS手机(P40及以上)可见,您必须使用华为的HMS转换器,将所有GMS依赖项转换为HMS依赖项。

基本上,您可以使用HMS工具包,您可以查看视频指南:https://developer.huawei.com/consumer/en/training/course/video/C101638944154324019

您还可以使用官方的华为Cordova推送插件来进行通知:
https://www.npmjs.com/package/@hmscore/cordova-plugin-hms-push
https://www.npmjs.com/package/@hmscore/ionic-native-hms-push"

英文:

It seems that your app has Google libs and doesn't have Huawei libs and it's published in AppGallery in state, that allows to install app only for users with google services.

Whenever the application that you upload on AppGallery is not showing up on a phone that does not have GMS (such as P40) will not be shown in AppGallery, but if in example you have P30, it will be shown on AppGallery, In order to have your app VISIBLE to non-GMS phones (P40 and above) you have to use HMS converter by Huawei, where all GMS dependencies are turned to HMS dependencies.

Basically HMS toolkit, you can check the video guide: https://developer.huawei.com/consumer/en/training/course/video/C101638944154324019

You may also use official Huawei Cordova Push plugin for notifications:
https://www.npmjs.com/package/@hmscore/cordova-plugin-hms-push
https://www.npmjs.com/package/@hmscore/ionic-native-hms-push

huangapple
  • 本文由 发表于 2023年4月17日 20:57:22
  • 转载请务必保留本文链接:https://go.coder-hub.com/76035410.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定