【发布时间】:2014-09-25 08:59:07
【问题描述】:
我在使用深层链接的 URI 方面遇到了一些问题。我可以使用myapp://a?parameter=1,但是...我的问题是,此 URL 将通过 SMS 发送,例如在环聊应用程序中,无法单击此链接,因为它不是 http URL。
我无法将 URI 更改为 http://myapp,这是因为 iPhone 变体不支持这种方式。我需要一种方法来从环聊等其他应用中点击myapp://。
我在清单中的代码是:
<intent-filter android:label="label">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<!-- Accepts URIs that begin with "myapp://a” -->
<data android:scheme="myapp" android:host="a" />
</intent-filter>
是否有可能以某种方式将myapp://前缀添加到android系统或使链接在其他应用程序中可点击?
【问题讨论】:
标签: android uri intentfilter deep-linking