How to download APP in WeChat Mini Program?

How to download APP in WeChat Mini Program?

Possible solutions

  1. Official api interface;-At present, the official applet does not provide an interface for downloading APP; the applet is currently not allowed to export traffic outside of the APP, so it is reasonable to infer that this solution is not feasible in the short term.
  2. Open the web page in the applet through the web-view, and then provide the trigger download function;-According to the information on the Internet, it is possible to download the APP directly in the Android system, but not in the iOS system. In fact, even outside of the applet, when WeChat opens the webpage directly, the iOS system cannot download the APP directly. You need to jump to Safari to open the webpage and then download it.
  3. Open an external browser such as Safari in the applet, and then trigger the download;-the browser is actually a special APP, the applet currently does not support direct jump to other APPs, so the external browser cannot be opened;
  4. Open the app treasure webpage in the applet; - in addition to the applet, in addition to opening an external browser to install the application, you can also directly jump to the App Store to install the application through the app treasure. However, you cannot jump to the App Store in the applet.
  5. Through the QR code picture, identify the QR code and then open the webpage;-the preview picture in the mini program cannot recognize the ordinary QR code, only the mini program code;

in conclusion

Based on the public api of the WeChat applet, the function of downloading the APP cannot be realized in the WeChat applet of the Android system and the iOS system at the same time.

Remarks: The above schemes are all considered based on the public API of the mini program. If you have open WeChat built-in browsers, open public accounts and other non-public APIs, then it is still feasible from the perspective of the solution itself, but WeChat is reviewing the non-public API When using the api, the business side should not be allowed to do the download function.

Guess you like

Origin blog.csdn.net/jhq1990/article/details/82853436
Recommended