Samsung Messages app won't deep link into my app

心已入冬 提交于 2019-12-11 04:33:43

问题


I have an app that has the ability to be launched whenever I receive an SMS with a certain format, it works correctly when using the Android stock Messages app but, when testing on a Samsung device using their Messages app and clicking a link, it won't launch my app but instead try and open the link inside the Messages app, current implementation on AndroidManifest.xml

<activity android:name="com.example.SMSInterceptor"
    android:configChanges="keyboardHidden|orientation|screenSize">
    <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="https" />
        <data android:host="example.com" />
    </intent-filter>
</activity>

Anyone know any solution to this? Any help is appreciated.


回答1:


add to your intent filter auto verify like below:

<intent-filter android:autoVerify="true">


来源:https://stackoverflow.com/questions/45573058/samsung-messages-app-wont-deep-link-into-my-app

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!