The problem that the app packaging in the production environment cannot be automatically upgraded
1: Background introduction
This blog is a summary and improvement of the problem that the app packaging in the production environment cannot be automatically upgraded .
The purpose is to transform the experience into your own. Share it with everyone through the blog, and we will make progress and improve together.
Problem background:
The user installed the 74 version of the app, which cannot be automatically upgraded. Using the uni upgrade center.
Two: ideas & solutions
The user reported this problem. Through investigation, it was found that the user could not upgrade because there was no associated cloud space when the version 74 package was packaged.
Example:
the impact
The app cannot be automatically upgraded, and the product cannot provide stable certainty, which will cause thousands of users to lose, and the company will eventually die.
Workaround:
1. Closed-loop inspection. Before a problem occurs, it is operated by one person. Two people can be used to review to further ensure that there are no problems in the steps and processes.
2. Test guarantee after going online
3. Use automated packaging scripts to avoid problems caused by human factors
Three: Correct packaging and configuration automatic upgrade process
The following is how to use uniCloud's App upgrade center to automatically upgrade the app
App upgrade center document
1. Register uniCloud cloud service space
2. Create an admin project
①Open Hbuilder, create a new project, and select uni-app
②After clicking Create, follow the prompts and bind the cloud space
③. Import the HBuilderX plug-in and select the newly created admin project
HBuilder upgrade center plug-in
3. Create a uniapp project
①Create an app project
②Associate service cloud space
③. Import the HBuilderX plug-in, select the project HBuilder upgrade center plug-in just created
4. App packaging
5. Publish to the upgrade center
First run the admin project to log in
Four: Summary
- Closed-loop thinking, after completing the corresponding tasks according to the process, check again, check yourself and others to ensure that there are no problems. In addition, testing work is also required, and closed-loop work is performed again.
- Avoid problems caused by task factors by using automated packaging scripts