Analysis of Common Problems in Mini Program Development

More and more companies develop their own small programs and other mobile products, and small programs have also become a trend of mobile applications.

Analysis of Common Problems in Mini Program Development
Small program development

So, What are the common problems in the development process of applets? Next, a brief introduction:

1. Configure domain name and certificate

Many people use WeChat development tools when developing small programs. In the development environment, there is no need to deal with domain names and certificates. After the function development is complete and everything is normal, if you want to preview the mobile phone, release the trial version, or release the official version, you need to verify the domain name The so-called validity refers to the way that the applet calls the interface using the domain name. You need to purchase the domain name and file it first. After the filing is passed, apply for the SSL certificate of the domain name. After the certificate is applied, it is configured to the application server, such as nginx or tomcat. It needs to be configured on the applet platform, so that the validity of the domain name will be fixed. Without this operation, when you preview or release the trial version on your mobile phone, you will not be able to call the back-end interface normally.

2. Applet cache

When a new version of the applet is released, the user is still using the old version, which will cause some compatibility issues. Generally, for this kind of applet caching, you can add automatic updates to the applet. Check whether the applet is running every time. If there is a new version, it will be automatically downloaded when there is a new version.

3. Privacy rights

Some user privacy data may be used in the applet, such as the location of the user, so it is necessary to add the configuration and usage description of the location permission to the applet, and to enable the corresponding interface permission on the applet platform, so that it can be used in the official version .

4. session_key leak

During the development of the applet, some people will return the session_key from the backend interface or pass the session_key to the backend interface. After the applet detects it, it will remind you, and you must modify it in time when you receive the reminder.

5. The program package is too large

The size of the small program package is limited to 2M. Reasonable use can fully meet the normal use. Generally, the package is too large because there are too many or too large local pictures. You can use some online compression tools to compress, or upload the local pictures to the server. Display pictures in the form of address, even if the size of the package is still more than 2M after processing, you can also use subpackage, the size of the subpackage is limited to 20M, so there is no need to worry about the problem caused by the size of the package.

6. Operating specifications

The small program platform will detect some irregularities during the review, such as common: to improve the personal information, the user service agreement and privacy policy must be added, and the corresponding interface can be called only on the page that needs to use the user’s privacy permission, etc., developed functions It needs to comply with WeChat operating specifications, so that there will be no messy small programs, which is a good experience for users.

The above are the common problems encountered in the development of small programs.

=
Like (0)
adminadmin
Previous 2023-08-28
Next 2023-08-28

相关文章