简体   繁体   English

Android app华为发布问题,com.huawei.hms.common.ApiException: 6003: certificate fingerprint error?

[英]Android app Huawei release problem, com.huawei.hms.common.ApiException: 6003: certificate fingerprint error?

I made an app.我做了一个应用程序。 Everything is fine in the debug version, push (i use onesignal) messages are also received.在调试版本中一切都很好,推送(我使用 onesignal)消息也收到了。 However, the version (release) uploaded to the huawei store does not receive the push message.但是上传到华为商店的版本(release)收不到推送消息。 I have the following error: com.huawei.hms.common.ApiException: 6003: certificate fingerprint error我有以下错误:com.huawei.hms.common.ApiException: 6003: certificate fingerprint error

I searched and found that there is no release config in signinReport.我搜索了一下,发现signinReport里面没有release config。

Does anyone know how and what to do?有谁知道如何和做什么? Thanks谢谢在此处输入图像描述

This error is: Certificate fingerprint verification: Incorrect signing certificate fingerprint.此错误是:证书指纹验证:签名证书指纹不正确。

  1. Verify that the certificate fingerprint is correctly configured when you apply for related services.申请相关服务时,验证证书指纹是否配置正确。 Android: Open the APK file of an app, extract the META-INF directory from the file, obtain the CERT.RSA file in the directory, and run the keytool -printcert -file META-INF/CERT.RSA command to record the signing certificate information. Android:打开APP的APK文件,从文件中解压META-INF目录,获取目录下的CERT.RSA文件,执行keytool -printcert -file META-INF/CERT.RSA命令记录签名证书信息。

    HarmonyOS: Decompress the HAP package at multiple levels to obtain the *.EC file in the META-INF directory. HarmonyOS:对HAP package进行多级解压,得到META-INF目录下的*.EC文件。 Then, run the following keytool command of the JDK to view the EC file:然后运行JDK的keytool命令查看EC文件:

    keytool -printcert -file {File name} keytool -printcert -file {文件名}

  2. Sign in to AppGallery Connect, click My projects, and select a required project.登录AppGallery Connect,点击我的项目,select 一个必填项目。 On the displayed page, select the app, go to Project settings > General information, and check whether the value in SHA-256 certificate fingerprint is the same as that in step 1.在弹出的页面,select app,go 项目设置 > 常规信息,检查SHA-256证书指纹中的值是否与步骤1中的相同。

As for how to generate certificate fingerprint, you can refer to:至于如何生成证书指纹,可以参考:

  1. https://developer.huawei.com/consumer/en/doc/development/HMSCore-Guides/signing-fingerprint-0000001059050363 https://developer.huawei.com/consumer/zh/doc/development/HMSCore-Guides/signing-fingerprint-0000001059050363

  2. https://developer.huawei.com/consumer/en/doc/development/HMS-Plugin-Guides-V1/generate-signature-0000001093910810-V1 https://developer.huawei.com/consumer/zh/doc/development/HMS-Plugin-Guides-V1/generate-signature-0000001093910810-V1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM