当前位置:网站首页>[uniapp] system hot update implementation ideas

[uniapp] system hot update implementation ideas

2022-07-05 04:12:00 Rabbit Xiaoyun

1. Client implementation logic

(1) When the user logs in , Automatically get the latest version number of the server , And match the local version number , If the server version is higher than the local version , Prompt the user to update

(2) The user enters the personal center page , Click version update , Check the updated version number , Click Yes to update the version .

a. If the base version is the same , But the application version number is different , Get from the server wgt Format update profile , Automatic download for update .
( If there are some problems after the update , Consider uninstalling apk Post login WEB Client re Download apk.)

b. If the base version is different , Then get the new version from the server apk Automatically download and reinstall .

2. The server implements logic

In the system parameter configuration section , Configure update address 、 Update version information ( Include app name 、 Client type 、 Content description 、 Base version number 、 Application version number, etc )

3. Realization effect :

 Insert picture description here
 Insert picture description here

原网站

版权声明
本文为[Rabbit Xiaoyun]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/186/202207050406027472.html