I can't figure out how to intercept the redirect_uri that I use with Fitbit OAuth 2.0.
Here's the intent filter that I defined for one of my actions:
<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="track" android:host="fitbit"/> </intent-filter>
After logging in and authorizing the user using the Chrome user tab, I am redirected to tracking: // fitbit URI, which I would like to intercept and send this intention to my activity, but redirect_uri loads into Tab itself, showing the error "ERR_UKNOWN_URL_SCHEME".
EDIT. # 1:
Found a similar discussion at https://code.google.com/p/chromium/issues/detail?id=536037 . I cleared defauls from Chrome, but the redirect_uri tabs don't seem to start Intent, asking which application opens the URI with.
source share