5

我正在使用 chrome 自定义标签登录strava。我能够授权该应用程序,但 chrome 自定义选项卡在到达重定向时不会重定向回我的应用程序。

<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>

当 chrome 自定义选项卡重定向 URI 时,如何重定向回应用程序?

4

2 回答 2

3

根据此:https ://code.google.com/p/chromium/issues/detail?id= 536037 URI 必须具有自定义方案,否则将不会启动应用程序的意图。

尝试使用类似 strava://callback 或 sample://example 的 URI。

此外,请确保意图中定义的 URI 与使用的 redirect_uri 参数以及注册到您的应用程序的参数匹配。

于 2016-02-08T22:03:58.123 回答
0

目前 strava 仅支持 http[s] 方案。
我认为只有fitbit支持自定义方案,以便从 chrome 自定义选项卡获取应用程序的回调。

于 2016-11-15T05:02:27.943 回答