Overview
My current job is full-time small program development. The small program I am responsible for needs to be released on Douyin + Kuaishou + WeChat + Alipay. At the end of the year, the company is preparing to do a wave of marketing activities. If the marketing activities are better spread, the H5 event marketing page is the first choice. , this requires considering how to use Users are introduced from the H5 page to our own mini program to achieve the purpose of attracting traffic, so we need to investigate whether each mini program platform has the corresponding capabilities to meet this demand, so we have this article to record the jumps of each mini program platform Link rules in case you need to query them.
Organizing link rules
Here I only sort out the small program platforms that I have come into contact with during my work development.
WeChat applet externally evokes URL Scheme
premise:
Developers do not need to call the platform interface. At the bottom of the left corner, go to the applet name -> Account Settings -> Basic Settings -> Privacy and Security -> Plain Text Scheme to pull up this applet and configure the page to be redirected.
Link rules:
weixin://dl/business/?appid=[appid]&path=[path]&query=[query]&env_version=[env_version]
- [Required] appid: the appid of the mini program to be opened;
- [Required] path: the page path of the mini program to be opened. It must be the page where the published mini program exists. It cannot carry query;
- [Optional] Query: The query of the mini program to be opened. The maximum length is 512 characters. Only numbers, uppercase and lowercase English and some special characters are supported: !#$&'()*+,/:;=?@-._ ~%`, requires url_encode;
- [Optional] env_version: The version of the mini program to be opened. The official version is release, the experience version is trial, and the development version is develop. It only takes effect when opened outside WeChat. Note: If not filled in, the official version of the mini program will be opened by default.
The scenario value for opening a mini program through plaintext URL Scheme is 1286.
Official documentation
Kuaishou Mini Program externally evokes URL Scheme
Link rules:
kwai://miniapp?appId=[appId]&KSMP_source=011012&KSMP_internal_source=011012&path=[path]
You can replace the appid and path with your own mini program appid and the path of the specific page according to this example link (be careful not to fill in the wrong scene value, which will cause the mini program to fail to open in some cases). After generating the link, configure the link in the service TAB You only need to configure the linked modules.
- [Required] appId: the appid of the mini program to be opened;
- [Required] path: the page path of the mini program to be opened. It must be the page where the published mini program exists. It cannot carry query;
- [Required] KSMP_source: The scene value of opening the mini program, the fixed value is 0110120
- [Required] KSMP_internal_source: The scene value of opening the mini program, the fixed value is 0110120
Official documentation
Alipay applet externally evokes URL Scheme
Link rules:
alipays://platformapi/startapp?appId=[appId]&page=[page]&query=[query]
- [Required] appId: the appId of the mini program to be opened. Example: 20170713077xxxxx
- [Optional] Page: The page path of the mini program to be opened. To jump to the specific page of the target mini program, this value is equal to the configuration value in; if there is no page field, it will jump to the home page of the mini program by default. Can it be in the path? The page parameters after the jump are appended later. Page parameters must be UrlEncoded, otherwise only the first page parameter can be obtained. Example: UrlEncode before encoding: pages/index/index?key1=1&key2=2 After UrlEncode encoding: pages/index/index?key1%3D1%26key2 %3D2
- [Optional] Query: Indicates that the parameters carried by the external App are transparently transmitted to the target applet. If you do not need to carry parameters to the applet, you do not need to carry this parameter. query: startup parameter, the content is in the format of parameter name=parameter value¶meter name=parameter value. Note: The startup parameters carried by query must be UrlEncoded, otherwise only the first parameter can be obtained. Before UrlEncode encoding: key1=value1&key2=value2 After UrlEncode encoding: key1%3Dvalue1%26key2%3Dvalue2
Official documentation
The Alipay mini program also thoughtfully provides an online link generation tool:Official generation tool
Jingdong mini program external link evocation
Link rules:
/apps/mpshare/?appId=[appId]&type=1&pageAlias=[pageAlias]&path=[path]
- [Required] appId: the original ID of the applet to be opened
- [Optional] type: The type of the open mini program, 1 corresponds to the online official mini program 2 is the trial version mini program
- [Optional] pageAlias: The alias of the page to be opened. It needs to be configured and used in. For details, seeGlobal configuration, with a lower priority than the path field
- [Optional] The path after path requires url encode. If the original path field value is as follows: page/index/?name=aa, it needs to be converted into page%2findex%%3fname%3daa; the customization after ? in path Parameter values can be obtained in the onLaunch callback.
Official documentation
Douyin mini program external evocation URL Scheme
Douyin currently does not support users to manually spell URL jump paths, and can only generate corresponding jump links through the request interface.
Official documentation
Forum help posts
QQ applet
We haven’t found a way to jump yet. On the document, you can only scan the ordinary QR code to jump to the mini program. It is also noted that it is limited to the case of "scanning" or "long pressing in QQ to identify the QR code" on mobile QQ. There is no forum, and I can't find the customer service entrance. I'm completely blind.
expect
The QQ mini program has not found a solution. If you know it, please comment and add it. For other mini program platforms, if you have developed contact with them and know the link rules, you are also welcome to comment and add them. Let's learn and make progress together.