【问题标题】:App Intent with Eddystone Beacons and Nearby带有 Eddystone 信标和附近的 App Intent
【发布时间】:2017-05-20 19:18:56
【问题描述】:

当用户点击附近通知时,我想在应用中打开某个 instagram 个人资料。

我要填写三个字段:

  • 意图方案
  • 意图路径
  • 应用包名

包名相当清楚(com.instagram.android)。但是当我只填写这个字段时,应用商店首先打开。在那里我必须点击“打开”才能打开 Instagram。我究竟做错了什么?我发现的唯一应用意图教程是关于直接应用集成的,没有多大用处。

【问题讨论】:

  • 当打开 Play 商店而不是应用程序时,您为所有三个字段输入了什么值?
  • 只有包名。

标签: android android-intent eddystone


【解决方案1】:

App Intent 仅适用于已在 Google Play 商店上发布的应用。

【讨论】:

    【解决方案2】:

    也许您应该像这样在您的应用中添加一些内容:

    <intent-filter>
        <action android:name="android.intent.action.VIEW"/>
        <category android:name="android.intent.category.BROWSABLE"/>
        <category android:name="android.intent.category.DEFAULT"/>
    
        <data
            android:host="scan"
            android:pathPrefix="/profile/foo"
            android:scheme="fb"/>
    </intent-filter>
    

    您可以查看更多信息here

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多