I have implemented deep linking to my app successfully but I am stuck with
a problem.
<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="*.example.com"
android:scheme="https"/></intent-filter>
This intent filter handles all the links but I don't want to catch a
certain url i.e.
https://www.example.com/hello/redirect/
*What I tried so far:*
I tried entering all the urls that I want to catch manually
<data
android:host="*example.com"
android:scheme="https"
android:pathPrefix="/m/"><data
android:host="*example.com"
android:scheme="https"
android:pathPrefix="/c/"><data
android:host="*example.com"
android:scheme="https"
android:pathPrefix="/p/">
etc....
But then my home page url doesn't work i.e.
https://www.example.com
If i use
android:pathPrefix="/"
then this will start catching all the urls again including the url i want
to omit.
I also tried using
android:pathPattern
But it can't understand complicated regex like this ^((?!redirect).)*$
which works fine when i try it in strings and all.
Anybody know how can I omit certain urls?
--
You received this message because you are subscribed to the Google Groups
"Android Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/android-developers.
To view this discussion on the web visit
https://groups.google.com/d/msgid/android-developers/307af6fd-fdb6-49da-b176-87d2abf593de%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.