With the popularity of smartphones, many companies have begun their own mobile application development and marketing, among which WeChat mini programs have become one of the marketing methods of more and more companies. In actual applications, small programs need to be constantly updated to solve some problems and improve user experience. This article will introduce in detail how to use uniapp to update the applet version.
1. Prerequisites
Before updating the mini program version on uniapp, you need to ensure that the following conditions are met.
1. Developer permissions have been opened and you can develop small programs.
2. The mini program application has been registered in the developer backend, and the app ID and secret key of the mini program application have been obtained.
3. WeChat developer tools have been installed and can run and publish mini programs.
2. Generate a new mini program code version
To update the mini program version in uniapp, you first need to compile the uniapp project into the mini program code and generate a new mini program version.
1. Open the manifest.json file in the uniapp project and set the version number of the mini program.
{
"version": "1.0.1"
}
2. Open the project in HBuilderX and open the uni-app plug-in in the plug-in market (officially released )
Plug-in, in the Project
window on the left, select the Mini Program project, click Release
on the upper toolbar, select Mini Program
, and then select Upload code
.
3. In the pop-up mini program upload code box, fill in the app ID and secret key of the mini program application, log in to the WeChat developer tools, complete the code upload, and select the Preview
option. After confirming that it is correct, select Submit for review
for subsequent operations.
3. Upgrade the mini program version
After successfully uploading the mini program code, you can upgrade the mini program version.
1. Log in to the WeChat public platform, and in the mini program management background, enter the Version Management
page.
2. Find the newly uploaded mini program version and submit it for review. After passing the review, you can click Submit for production
in the review version to release the new version online.
3. After the update is completed, open the mini program in WeChat and you will see the new version of the mini program.
4. Summary
Updating the mini program version in uniapp requires two steps: generating code and uploading code. Among them, attention should be paid to the version number setting and review process of the mini program. A better updated version can enhance the security and stability of the mini program, and also improve the user experience.
The above is the detailed content of How to update the mini program version in uniapp. For more information, please follow other related articles on the PHP Chinese website!