dreampowder / strava_flutter

Flutter package to use Strava v3 API
Other
37 stars 52 forks source link

"Request Failed"error when authenticate #84

Closed yusmi25 closed 1 year ago

yusmi25 commented 2 years ago

I get Problem When I load the request using the example Screenshot_2022-04-08-10-48-05-153_com strava

my Android Manifest :

`

...
<intent-filter>
              <action android:name="android.intent.action.MAIN" />
              <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <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="stravaflutter" android:host="redirect" />
              <data android:pathPattern="/.*" />
            </intent-filter>
        </activity>

` On Strava API "Authorization Callback Domain" ="redirect" Thank You.

yusmi25 commented 2 years ago

I edit the manifest :

<intent-filter>
              <action android:name="android.intent.action.MAIN" />
              <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <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="stravaflutter" android:host="redirect" />
            </intent-filter>
        </activity>

but when I click Authorize, the app automatic restart and the authentication failed

yusmi25 commented 2 years ago

I edit the manifest :

<intent-filter>
              <action android:name="android.intent.action.MAIN" />
              <category android:name="android.intent.category.LAUNCHER" />
            </intent-filter>
            <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="stravaflutter" android:host="redirect" />
            </intent-filter>
        </activity>

but when I click Authorize, the app automatic restart and the authentication failed

update: this error on android 10

seanradford commented 2 years ago

Does anyone have an answer to this issue?

Thanks.

dreampowder commented 1 year ago

this should be fixed with the latest updates, please pull from the latest commit again