Joke Collection Website - Public benefit messages - H5 opens applets and WeChat apps in non-WeChat environment.

H5 opens applets and WeChat apps in non-WeChat environment.

Get the applet appid and secret, and adjust the interface. For details, please refer to/miniprogram/dev/API-backend/open-API/access-token/auth.getaccesstoken.html official WeChat document to obtain the applet scheme code.

The official document of WeChat applet

1.URL scheme is not very compatible with Android system, and it still needs to be located. href =' weixin://dl/business/? T= ticket'

2, Android system, directly click the URL link in the short message to enter the H5 official webpage, and then click to jump to the applet.

Android can only click on the link, not the scheme.

URL links are better. And the compatibility is strong, H5 pages do not need to be customized, and the user experience is higher than urlScheme.

Technical realization

Step 1: generate url pattern

Tell me how to generate it.

Get access token

Get appid and secret of applets and adjust the interface.

See the official wechat document/miniprogram/dev/API-backend/open-API/access-token/auth.getaccesstoken.html for details.

Get a small program solution? See the official wechat document of/miniprogram/dev/API-backend/open-API/URL-scheme/urlscheme.generate.html for details.

Openlink is a small program scheme code.