【问题标题】:intent_filter: run apk build in UNITY from urlintent_filter:从 url 在 UNITY 中运行 apk 构建
【发布时间】:2017-11-10 14:01:43
【问题描述】:

我在通过 url 运行应用程序时遇到问题。 我添加到清单意图过滤器,但它不起作用。 我想在 url 之后启动应用程序,当然它在设备上。

这是我的 android 清单中的代码活动:

<activity android:label="@string/app_name" android:name="com.unity3d.player.UnityPlayerActivity" android:screenOrientation="fullSensor" android:launchMode="singleTask" android:configChanges="mcc|mnc|locale|touchscreen|keyboard|keyboardHidden|navigation|orientation|screenLayout|uiMode|screenSize|smallestScreenSize|fontScale|layoutDirection">
      <intent-filter>
        <action android:name="android.intent.action.MAIN" />
        <category android:name="android.intent.category.LAUNCHER" />
        <category android:name="android.intent.category.LEANBACK_LAUNCHER" />
      </intent-filter>
      <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="testurl" android:host="app.open"/>
      </intent-filter>
      <meta-data android:name="unityplayer.UnityActivity" android:value="true" />
    </activity>

有人可以帮助我吗?

【问题讨论】:

  • 浏览器中的url = testurl://app.open
  • 我很确定网站(即本例中的 app.open)还必须提供文件或 DNS 记录,授权该应用为官方应用。您提供了吗?/您是否拥有您尝试将应用链接到的网站?

标签: url unity3d android-manifest intentfilter


【解决方案1】:

它有效。有必要创建一个带有 URL 的 html。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2018-04-09
    • 1970-01-01
    • 1970-01-01
    • 2020-10-12
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-23
    相关资源
    最近更新 更多