英文:
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通知插件。
我应该如何继续?
- 安装hsm-push吗?
- 在华为构建中删除firebasex吗?
- 控制器中的代码怎么办?我是否应该检查是否是华为手机并应用某种设置/方法调用?
- 在app.module中的插件声明怎么办?
- HSM核心SDK怎么办?- https://developer.huawei.com/consumer/en/doc/development/HMSCore-Library/android-sdk-download-0000001064112371
英文:
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?
- install hsm-push?
- remove firebasex for huawei builds?
- what about the code inside controllers? should I check if is a huawei phone and apply some sort of settings/methods-call?
- what about the plugin declaration in app.module?
- what about the HSM Core SDK? - https://developer.huawei.com/consumer/en/doc/development/HMSCore-Library/android-sdk-download-0000001064112371
答案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
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论