华为IAP反应本地

发布于 2025-01-23 13:57:17 字数 500 浏览 0 评论 0 原文

我将华为集成在我的React Antive应用程序中,我遵循了所有设置指南。每件事都会顺利进行,但是当我尝试调用方法时,它会返回错误。

HMSIapModule.isSandboxActivated()
       .then((isSandboxActivatedResult) => {
         console.log(JSON.stringify(isSandboxActivatedResult), 'result');
       })
       .catch((err) => {
         console.log(JSON.stringify(err), 'err');
       });

我还实施了此模块的不同方法,但每次都会产生相同的错误。 我还搜索了华为中的状态错误守则,但没有提供任何完整的指南来解决它。

错误:{“ statuscode”:907135000,“ issuccess”:“ false”}

I am integrating Huawei in app payment module in my react native application, I have followed all the guidelines for setup. Every thing is going smooth but when i try to call a method it returns error.

HMSIapModule.isSandboxActivated()
       .then((isSandboxActivatedResult) => {
         console.log(JSON.stringify(isSandboxActivatedResult), 'result');
       })
       .catch((err) => {
         console.log(JSON.stringify(err), 'err');
       });

I have also implemented different methods of this module but it gives the same error every time.
I have also searched for the status code of error in Huawei but it not giving any complete guideline to resolve it.

Error :{"statusCode":907135000,"isSuccess":"false"}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

明天过后 2025-01-30 13:57:17

我已经完成了华为指南的所有设置,但它仍然无法正常工作。

然后,我将这些行添加到我的androidManifest.xml文件中
“应用程序>”标签:

<meta-data
    android:name="com.huawei.hms.client.appid"
    android:value="appid=111111111">
</meta-data>

其中11111111是我的应用程序ID,来自AppGallery Connect Console。

这可以解决我的907135000错误代码问题!

I have done all settings from Huawei guide but it still was not working.

Then I have added these lines into my AndroidManifest.xml file under the
"application>" tag:

<meta-data
    android:name="com.huawei.hms.client.appid"
    android:value="appid=111111111">
</meta-data>

Where 111111111 is my App id from AppGallery Connect Console.

And this is resolved my 907135000 error code issue!

零度° 2025-01-30 13:57:17

建议您关注检查集成过程中是否有任何遗漏。

检查以下项目:

  1. 检查agConnect-services.json文件中的app_id是否与AGC上的app_id相同,以及agConnect-services.json文件中的软件包名称是否正确。

检查agconnect-services.json配置和agconnect-services.json文件是否存储在适当的位置。请注意,下载的agconnect-services.json文件应复制到应用程序目录。

  1. 检查是否应用插件:'com.huawei.agconnect'添加到build.gradle。

  2. 在AGC上注册应用程序产品信息,并将其与环境相对应。

  3. 生成签名证书指纹。

签名证书指纹用于验证应用程序的真实性。在发布应用程序之前,您必须根据签名证书在本地生成签名证书指纹,并在AppGallery Connect中进行配置。
检查JKS证书文件是否存储在应用程序级别目录中,以及应用程序级别build.gradle文件中的证书签名是否正确。请关注

如果前面的信息正确,但是问题仍然存在,则可能是由HMS Core(APK)缓存引起的。您可以尝试卸载并重新安装HMS Core(APK),断开连接并重新连接到设备网络,然后重新启动应用程序。
如果无法解决问题,请提供详细的错误日志。 (可以通过编辑您提出的问题来上传日志。)


错误:{“ statuscode”:907135000,“ issuccess”:“ false”}

According to

如果没有解决问题,请提供更多信息,例如您的集成步骤,详细日志等。)

“在此处输入映像”

It is recommended that you follow this docs to check whether there are any omissions in the integration process.

Check the following items:

  1. Check whether app_id in the agconnect-services.json file is the same as that on the AGC, and whether the package name in the agconnect-services.json file is correct.

Check whether the agconnect-services.json configuration and the agconnect-services.json file are stored in a proper place. Note that the downloaded agconnect-services.json file should copy to the app directory.

enter image description here

  1. Check whether apply plugin:'com.huawei.agconnect' is added to build.gradle.

  2. Register the app product information on the AGC and have the APPID corresponding to the environment.

  3. Generating signature certificate Fingerprints.

The signing certificate fingerprint is used to verify the authenticity of an app. Before releasing an app, you must generate a signing certificate fingerprint locally based on the signing certificate and configure it in AppGallery Connect.
Check whether the JKS certificate file is stored in the app level directory and whether the certificate signature in the app level build.gradle file is correct. Kindly follow this docs.

enter image description here

If the preceding information is correct but the issue persists, maybe caused by the HMS Core (APK) cache. You could try to uninstall and reinstall the HMS Core (APK), disconnect and reconnect to the device network, and restart the app.
If the problem cannot be solved, please provide a detailed error log. (Logs can be uploaded by editing the question you asked.)


Error :{"statusCode":907135000,"isSuccess":"false"}

According to this docs, you are advised to check whether the input parameter is incorrect.

If it does not fix the issue, please provide more info, like your integration steps, detail logs, etc. :)

enter image description here

街角卖回忆 2025-01-30 13:57:17

错误907135000表明agconnect-services.json文件存在问题。确保下载并正确添加agconnect-services.json文件。

The error 907135000 indicates that there is a problem with the agconnect-services.json file. Make sure the agconnect-services.json file is downloaded and added correctly.

enter image description here

enter image description here

Please follow HMS IAP detailed guide to see if there is any minor thing missing? https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides-V1/integrating-sdk-0000001050726210-V1

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文