I'm using chrome custom tabs to login with strava
.
I'm able to authorise the app, but the chrome custom tabs is not redirecting back to my app on reaching redirection.
<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:host="sample.example.com"
android:pathPrefix="/"
android:scheme="http" />
</intent-filter>
How can I redirect back to app when chrome custom tabs goes to redirect the URI?
According to this: https://code.google.com/p/chromium/issues/detail?id=536037 the URI must have a custom scheme or the intent to the app will not be launched.
Try a URI like strava://callback or sample://example.
Also, make sure the URI defined in the intent matches the redirect_uri parameter used as well as the one registered to your app.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With