UE4 URL Scheme 从浏览器调起App

UE4的移动平台应用通过调用URL Scheme从网页启动App

 

1. Android

在Project Settting -> Android -> Advanced APK Packaging -> EXtra Setting for <activity> section (\n to separate lines)中添加

<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="mygame" android:scheme="mytestapp" />

</intent-filter>

 

调用的话就直接 mytestapp://mygame 就可以了。

关于URL Scheme的详细使用方法可以自行百度。

//本文为优快云博主执手画眉弯原创,未经允许不得转载!

2. IOS

在ProjectSetting -> IOS -> EXtra PList Data -> Additional Plist Data 中添加

<array>

<dict>

<key>CFBundleTypeRole</key>

<string>Editor</string>

<key>CFBundleURLName</key>

<string>

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值