我希望能够使用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>
在我将方案更改为http
或https
之前,它无效。
发送的邮件中可能只有错误?
sampleapp://smsverification/data?value=123&code=abc