当前位置:网站首页>Huawei applications have called the checkappupdate interface. Why is there no prompt for version update in the application
Huawei applications have called the checkappupdate interface. Why is there no prompt for version update in the application
2022-07-23 09:08:00 【Huawei Developer Forum】
Problem description
The app is online , I updated Huawei game service SDK after , The test found that the version update prompt does not pop up after the application is started . But I did follow the official guidance document , Already called checkAPPUpdate Detect update interface .
Reference documents : Game upgrade
Problem analysis and solution
I found Huawei technical support , The other party asked me to check the time first :
- Whether the interface calling code is correct .
- Because the application has been launched , You can update the version number of the package versionCode Change a little ( Smaller than the version number of online package ), Check whether the version update prompt will pop up after the local installation update package is started —— The upgrade logic of Huawei applications is based on the version number , As long as there is a new version online ( The version number is larger than the local ), You will be prompted to upgrade .
- After the application starts , You can take the full log and have a look , If you can find it UpdateSDK version is:xxx Information log , It also indicates that the interface has been called .
I checked the above three points , Make sure the interface calls .
Send the log to Huawei Technology , The other party finds the error information as follows :
Updateinfo is not recommend, reason: Uninstall the old version before installation ,is same signature: 1This error indicates that my game is in the list of not recommended updates , Because the signatures are inconsistent .
This situation ,SDK Update will not be prompted , But when you go to the application market, you will see relevant prompts . Then I open the application market search game , As expected, I saw :“ The signature of the update package is inconsistent with the old version , You need to completely uninstall the old version from the device before updating . It may cause the loss of program data or game archives , Continue uninstalling ”.

But I checked myself , Make sure the signature has not been changed .
Then Huawei technical support passed appid It is found that our game has been added Huawei's signature service :
And this option was checked at that time :
If you choose “ Give Way AG Connect Create and manage my app signature key ”,AGC A new signature key will be generated for the application , And re sign the application with the new signing key . Simple can be understood as , When I took out my bag, my signature was A, After using the signature service in this way , Huawei made a re signature , So the signature of the online package becomes B, And signature B I can't get it , At this time, I send a new package locally , The signature is still used A, In this way, the signature of the new package is different from that of the online package . So even if checkAPPUpdate Interface call , And versionCode Make it smaller to test , No version update will be prompted in the app , In the application market, it will prompt that the signatures are inconsistent . Only when the new package goes online , Players who previously downloaded old packages in the application market , Will be prompted for version updates in the application .
If you choose “ Export and upload keys and certificates ”,AGC Will use CP The uploaded signature key pair is re signed by the application , in other words , In this way , As long as my new package is signed and uploaded by myself , Before the new package goes online , The version update box pops up in the local test application .
Under the analysis and description of Huawei Technology , After I confirm that the signature of the new package remains unchanged , Submitted for review .
PS:
The above two Huawei “ Apply signing key ” Options , Once you choose one , Modification not supported .
If the signature of the new package is the same as that of the old package ( My own ) If the signatures are inconsistent , The audit will prompt that the signatures are inconsistent and rejected .( Instead of prompting in the application market )
Once you join the signature service , Can't delete , But you can recreate an application .
边栏推荐
猜你喜欢

模板学堂丨JumpServer安全运维审计大屏

【并发编程】第二章:从核心源码深入ReentrantLock锁

BGP federal experiment

UGUI源码解析——IMaterialModifier

驱动单片机硬件调试器的一些开源库总结(包含stlink调试器)

Svg+canvas canvas track JS special effect

No requirement document, reject development?

How many of the 50 classic computer network interview questions can you answer? (II)

How many of the 50 classic computer network interview questions can you answer? (III)

Mathematical modeling interpolation fitting
随机推荐
Detailed explanation of common ADB operation commands of "suggestions collection"
input 输入完成时的触发事件
UGUI源码解析——Mask
The concept and method of white box test
Jmeter---Jmeter安装教程
go语言中的结构体和组合思想入门示例
IDEA导出jar包到JMeter
PostgreSQL and Navicat: the backbone of the database industry
No requirement document, reject development?
[ctfshow web getting started]ssrf
【管理篇 / 升级】* 02. 查看升级路径 * FortiGate 防火墙
Template school jumpserver security operation and maintenance audit screen
K3S - 轻量级Kubernetes集群
openresty lua-resty-balancer动态负载均衡
在通达信开户安全不
疫情隔离区订餐系统的开发
Swin transformer object detection project installation tutorial
Arduino框架下合宙ESP32C3 +1.8“TFT液晶屏通过TFT_eSPI库驱动显示
.NET开发云原生应用,你只差给自己加个油
MGRE 网络的构建