当前位置:网站首页>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 .
边栏推荐
- 【CANN训练营】学习笔记——Diffusion和GAN对比,Dalle2和Parti
- Mathematical modeling -- graph and network models and methods (II)
- XSS labs customs collection
- Unity中实现判断Missing还是Null
- 超全PMP备考文档汇总
- UGUI源码解析——IMaterialModifier
- OSI七层模型有哪七层?每一层分别有啥作用,这篇文章讲的明明白白!
- Jmeter---Jmeter安装教程
- 疫情隔离区订餐系统的开发
- Geely Xingrui: from product technology empowerment to cultural confidence
猜你喜欢

Talk about HART Protocol

Found a useful data analysis tool

数学建模——图与网络模型及方法(二)

Mathematical modeling interpolation fitting

Swin transformer object detection project installation tutorial

正则表达式转换为相应的文字小工具

带你走进MySQL MVCC的世界

-bash: wget: 未找到命令

There was an accident caused by MySQL misoperation, and "high availability" couldn't stand it

Unity中实现判断Missing还是Null
随机推荐
以后面试官问你 为啥不建议使用Select *,请你大声回答他!
正则表达式转换为相应的文字小工具
DALSA智能相机BOA Spot与西门子S7-1200 Profinet通讯
全新 IDEA 2022.2 正式发布,新特性很NICE
SQL Server 数据库设计--SELECT语句
[zero based BLDC series] brushless DC motor control principle based on Hall sensor
UGUI源码解析——IClippable
华为应用已经调用了checkAppUpdate接口,为什么应用内不提示版本更新
JMeter --- JMeter installation tutorial
Talk about HART Protocol
disruptor框架无锁实现生产者消费者代码实例
驱动单片机硬件调试器的一些开源库总结(包含stlink调试器)
小白股票开户安全吗?网上可以办理吗?
SQL Server 数据库设计--SELECT语句之二
解析创客教育活动所需的空间实践场
【高等数学】矩阵的初等变换和行列式的初等变换
UGUI源码解析——StencilMaterial
Internet Download Manager简直就是下载器中的大杀器
[try to hack] awvs installation and simple use
College students downloaded 2578 documents abnormally, and the IP of the University of Social Sciences of China was banned by a database