首先在AndroidMainfest.xml中的一个Activity中添加如下配置
<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:scheme="test"
android:host="com.android.test"
android:pathPrefix="/app/test"
/>
</intent-filter>
然后根据添加的data配置组装成一个url,如上的配置可以组合成
'test://com.android.test/app/test?action=1'
【deeplink 原理,deeplink用处】?后面可以携带你先要的参数
这样就可以通过intent获取携带的参数了
例如小程序就可以这样跳转了
router.push({
uri: 'test://com.android.test/app/test?action=1'
})
- 中国民间故事傣族泼水节的由来简介
- 砭石汗蒸足浴桶脚底按摩功效 砭石汗蒸小心保健不成反伤身
- 我国烧碱工业历史和现状,我国烧碱
- 云南鲜菌美食之旅
- 春天吃肉有讲究适合吃这三种肉
- 怎么关闭腾讯会员的自动续费功能
- 为什么美国龙卷风多,为什么每年美国会有很多龙卷风的发生?
- 污废水处理设备有哪些
- iu李知恩最近的消息