Rgfvfk Iff
Rgfvfk Iff

Reputation: 1609

Android deep linking path patterns

I want to ask are question marks supported in deep linking path patterns?

Right now if I have a link https://blah.com/test?key=123

<data android:pathPattern="/test.*"/> works but if I do

<data android:pathPattern="/test?key=.*"/> or

<data android:pathPattern="/test.key=.*"/>

the deep linking doesn't work.

Upvotes: 1

Views: 509

Answers (2)

Simon Marquis
Simon Marquis

Reputation: 7516

No, the ?key=... is not part of the URI path. It is called the query.

Upvotes: 0

Fintasys
Fintasys

Reputation: 1379

pathPattern works only with path like this /.*/.*/. The query parameters ('key') will be accessible through the Intent intent.getData()

Upvotes: 1

Related Questions