如何在网页中唤醒App


本文作者: jsweibo

本文链接: https://jsweibo.github.io/2019/03/29/%E5%A6%82%E4%BD%95%E5%9C%A8%E7%BD%91%E9%A1%B5%E4%B8%AD%E5%94%A4%E9%86%92App/

摘要

本文主要讲述了:

  1. 跳转到应用商店
  2. 高德地图

正文

跳转到应用商店

格式:

  • 搜索页:market://search?q=<keywords>
  • 详情页:market://details?id=<package-name>

示例:

1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<a href="market://search?q=qq">qq</a>
</body>
</html>

示例:

1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<a href="market://details?id=com.tencent.mobileqq">com.tencent.mobileqq</a>
</body>
</html>

高德地图

格式:

  • 搜索地点:androidamap://poi?keywords=<keywords>
  • 我的位置:androidamap://myLocation

示例:

1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<a href="androidamap://poi?keywords=学校">学校</a>
</body>
</html>

示例:

1
2
3
4
5
6
7
8
9
10
11
12
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
</head>
<body>
<a href="androidamap://myLocation">myLocation</a>
</body>
</html>

参考资料

本文作者: jsweibo

本文链接: https://jsweibo.github.io/2019/03/29/%E5%A6%82%E4%BD%95%E5%9C%A8%E7%BD%91%E9%A1%B5%E4%B8%AD%E5%94%A4%E9%86%92App/


本文对你有帮助?请支持我


支付宝
微信