提交 e7def913 编写于 作者: 杜庆泉's avatar 杜庆泉

增加 uni-app x 协议跳转直达示例

上级 a2cfc3a3
...@@ -16,5 +16,14 @@ ...@@ -16,5 +16,14 @@
<category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.DEFAULT" />
</intent-filter> </intent-filter>
</activity> </activity>
<!--meta-data-->
<activity android:name="io.dcloud.uniapp.UniLaunchProxyActivity" android:exported="true">
<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="appuniappx"/>
</intent-filter>
</activity>
</application> </application>
</manifest> </manifest>
...@@ -2,8 +2,8 @@ ...@@ -2,8 +2,8 @@
"name" : "HelloUTS", "name" : "HelloUTS",
"appid" : "__UNI__70BE9D0", "appid" : "__UNI__70BE9D0",
"description" : "", "description" : "",
"versionName" : "1.0.9", "versionName" : "1.1.0",
"versionCode" : "109", "versionCode" : "110",
"transformPx" : false, "transformPx" : false,
"uni-app-x" : {}, "uni-app-x" : {},
/* 5+App特有相关 */ /* 5+App特有相关 */
......
...@@ -382,7 +382,8 @@ function initShortCut() { ...@@ -382,7 +382,8 @@ function initShortCut() {
shortcutBuilder2.setIcon(IconCompat.createWithResource(UTSAndroid.getAppContext()!, R.drawable.icon_short)) shortcutBuilder2.setIcon(IconCompat.createWithResource(UTSAndroid.getAppContext()!, R.drawable.icon_short))
shortcutBuilder2.setIntent( shortcutBuilder2.setIntent(
new Intent( new Intent(
"uts.sdk.modules.demo" Intent.ACTION_VIEW,
Uri.parse("appuniappx://market/111")
) )
) )
let shortcut2 = shortcutBuilder2.build() let shortcut2 = shortcutBuilder2.build()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册