Wake up the APP (two methods)
1. Short chain wake up (jump) app ⭐
The short link jumps to the APP, and if the APP (a certain application) does not exist on the user's mobile phone, it will enter the official website page.
app links implementation
- Click Tools->App Links Ass on the menu bar of android studio, and the effect picture is as follows
2. Configuration is as follows
Click ok, and the following effect picture is generated
3. After completing the second step, the following code will be automatically generated in the selected activity
4. Configure and generate a manifest file, operation steps Figure
5. Put the generated assetlinks.json file under the domain name of the official website /.well-known/assetlinks.json
(you can configure it through nginx) 检查官网链接是否存在.例如
6. The test is completed
测试步骤:1.将 https://www.richpatti.com/H5 发到短信中。2.点击该链接:①当app存在直接会打开应用②当app不存在将会打开链接网址进行显示(可在网址页面上加入apk下载链接方便没有app的下载)。
2. H5|Web page wake-up (jump) app
Add
the following code under the corresponding active under the AndroidManifest.xml file of Android.
Note that the url scheme link needs to be set [scheme:][//authority][path][?query][#fragment]
, such as teenpattiacepro://richpatti.com
<intent-filter>
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="richpatti.com"
android:scheme="teenpattiacepro" />
</intent-filter>
url scheme link teenpattiacepro://richpatti.com
测试步骤:1.打开html文件(在下方)用手机浏览器浏览。2.点击文字链接①当app存在直接打开②app不存在不会有反应
h5 test html code is as follows
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>richpatti</title>
</head>
<body>
<a href="teenpattiacepro://richpatti.com">点击该文字跳转到APP</a>
</body>
</html>