Does the mini program support jumping apps?

Release: 2020-03-21 13:37:38
Original
4605 people have browsed it

Does the mini program support jumping apps?

The mini program supports jump app.

This function requires the user to actively trigger it to open the APP, so it is not called by the API. It needs to be triggered by clicking on the button component of launchApp with the value of open-type set to launchApp.

Example:

Mini Terminal

You need to set the value of button component open-type to launchApp. If you need to pass parameters to the APP when opening the APP, you can set app-parameter as the parameter to be passed. Through binderror, you can monitor error events when opening the APP.

app side

APP needs to access OpenSDK. For documentation, please refer to iOS / Android

Android third-party apps need to handle the WeChat callback of ShowMessageFromWX.req, and iOS needs to add the appId to the URL types field of the plist file to which the third-party app project belongs. For the method of obtaining app-parameter, please refer to the onResp method in WXEntryActivity in Android SDKSample and the onResp method in WXApiDelegate in iOS SDKSample.

Code Example

<button open-type="launchApp" app-parameter="wechat" binderror="launchAppError">打开APP</button>
Copy after login
rrree

The above is the detailed content of Does the mini program support jumping apps?. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template