当前位置:网站首页>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-26 14:58: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: 1
This 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 .
边栏推荐
- 【文件上传漏洞-06】分布式配置文件攻击实验—以upload-labs-4为例
- Simulation of character function and string function
- js 实现数字转金额价格千分符
- OSS deletes all files two days before the current time
- Canvas mesh wave animation JS special effect
- Use of LINGO software
- Introduction to C language must brush the daily question of the collection of 100 questions (1-20)
- SSH that must be read on cloud native
- 外文文献查找技巧方法有哪些
- php反序列化部分学习
猜你喜欢

Simulation of character function and string function

C nanui related function integration

VBA upload pictures
Network pictures are transferred locally, causing the kernel to exit

JS creative range select drag and drop plug-ins

OSPF和MGRE实验

VP视频结构化框架

Siamrpn++: evolution of deep network connected visual tracking

Canvas laser JS special effect code

Usage of nn.conv2d and nn.convtranspose2d functions in pytorch
随机推荐
自编码器 AE(AutoEncoder)程序
leetcode汇总
Would you please refer to the document of Database specification?
Minecraft 1.16.5模组开发(五十二) 修改原版生物战利品 (Loot Table)
基于CAS的SSO单点客户端配置
How to do app upgrade test?
中值滤波器
一个满的10L容器,7L、4L空的容器,如何得到5L的水
php反序列化部分学习
Sexy prime number (summer vacation daily question 1)
Create root permission virtual environment
SharkTeam发布2022年第二季度Web3安全态势感知报告
winscp传输文件和VNC连接问题
【文件上传漏洞-06】分布式配置文件攻击实验—以upload-labs-4为例
2. Add two numbers
C nanui related function integration
【方差分析】之matlab求解
Canvas mesh wave animation JS special effect
RPN:Region Proposal Networks (区域候选网络)
[dry goods] data structure and algorithm principle behind MySQL index