These URLs have a Path that always starts with "/watch" so no need for a
pattern.  Also, everything after the "?" is considered the "Query String",
not the Path.  Anything after a "#" is the "Feature String".  The path
matching in IntentFilters only see the Path, and nothing from the "Query
String" or "Feature String".

these are the available kinds of URLs:
https://developer.apple.com/library/ios/featuredarticles/iPhoneURLScheme_Reference/YouTubeLinks/YouTubeLinks.html
This commit is contained in:
Hans-Christoph Steiner 2016-01-01 23:32:09 +01:00
parent 28dd53ae50
commit 2a93e9bd2e
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@
<data android:host="m.youtube.com" /> <data android:host="m.youtube.com" />
<data android:host="www.youtube.com" /> <data android:host="www.youtube.com" />
<data android:pathPrefix="/v/" /> <data android:pathPrefix="/v/" />
<data android:pathPattern="/?*#*/*watch" /> <data android:pathPrefix="/watch" />
</intent-filter> </intent-filter>
<intent-filter> <intent-filter>
<action android:name="android.intent.action.VIEW" /> <action android:name="android.intent.action.VIEW" />