pattern matching - Android patternPath deeplinking -
i'm trying implement deep linking in application.
these 2 urls:
url1 : http://www.example.com/games/randomtext-game-randomno
url2 : http://www.example.com/games/randomno-scores/randomscore
as evident, initial part of both urls resolve same pattern. there way differentiate between 2 patterns in case each serves requirement individually. have gone through various links , tried many patterns, problem pattern selected url1 automatically resolves url2 well. game , scores constants in above urls want differentiate using them. in advance.
url1 : http://www.example.com/games/randomtext-game-randomno/
<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="http" android:host="www.example.com" android:pathpattern="\\/games\\/.*game.*\\/.*"/> </intent-filter>
url2 : http://www.example.com/games/randomno-scores/randomscore
<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="http" android:host="www.example.com" android:pathpattern="\\/games\\/.*scores\\/.*"/> </intent-filter>
Comments
Post a Comment