I am working on React Native Project and I have a problem in deep linking Android. I have two different pathPrefix. Let say:
<data android:pathPrefix="/query" />
and
<data android:pathPrefix="/transaction" />
What I want are:
- If I click
https://my.domain/query
the native modal appears and give me an option to open it in app or browser - But if i click
https://my.domain/transaction
its automatically direct me to my app without showing any modal
I have read this https://developer.android.com/training/app-links/verify-site-associations to solve number two and I already did. But didn't work like I want.
I already tried:
- Make two different activity.
MainActivity
andSecondActivity
. in Main, i use prefixquery
and in SecondActivity, I use prefixtransaction
and in this activity, my intent-filter hasandroid:autoVerify="true"
to make the App Links works. - I made one activity, but I have 2
inten-filter
. One withandroid:autoVerify="true"
and another one without it.
Both have the same result. It direct me to my app automatically.
My question, it is possible to have that different action? And if so, how to achieve it?
Thank you
question from:https://stackoverflow.com/questions/65843470/is-it-possible-to-have-different-action-for-every-pathprefix-in-deep-linking-and