I have created a deep link but problem is it's opening a dialog as "Open with or use a different app"
I don't want to make user to decide to choose the dialog. I want to directly open my app. Here is the code.
<activity android:name=".DeepLinkingActivity">
<intent-filter
android:autoVerify="true">
<action android:name="android.intent.action.VIEW" />
<category android:name="android.intent.category.DEFAULT" />
<category android:name="android.intent.category.BROWSABLE" />
<data
android:host="www.google.com"
android:pathPrefix="/help"
android:scheme="https" />
</intent-filter>
</activity>
class DeepLinkingActivity : AppCompatActivity() {
var datas: Uri? = null
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstanceState)
setContentView(R.layout.activity_deep_link)
}
override fun onResume() {
super.onResume()
var intent = intent
datas = intent.data
Log.v("TestingsDatas", "" + datas)
}
}