意图URI不可点击

时间:2017-06-01 08:25:37

标签: android android-intent uri

我希望能够使用SMS中提供的链接打开我的应用程序。我创建了以下intent过滤器,但它在消息传递应用程序中无法点击。

<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="sampleapp" />
    <data android:host="smsverification" />
</intent-filter>

在我将方案更改为httphttps之前,它无效。

发送的邮件中可能只有错误?

sampleapp://smsverification/data?value=123&code=abc

0 个答案:

没有答案