Closed hvkalayil closed 4 years ago
Hi @hvkalayil, thank you for the detailed report. There was a problem when empty scopes (or no scopes at all) were used. It should be fixed now, can you check the latest release (1.4.3)?
Thanks. Its working now. This package is extremely useful. Thanks for your work
I am getting this on version 2.2.4…
I am experiencing this in version 2.3.2. For android its working perfectly but in iOS it keeps trying to redirect me to get an accesstoken again.
I am experiencing this in version 2.3.2. For both android and ios android here is the full error detail
W/libEGL (27460): EGLNativeWindowType 0xba667008 disconnect failed
D/SurfaceView(27460): remove() io.flutter.embedding.android.FlutterSurfaceView{c59a186 V.E...... ........ 0,0-720,1494} Surface(name=SurfaceView - ng.myapp.com/ng.myapp.com.MainActivity@c59a186@0)/@0xd05d18a
W/libEGL (27460): EGLNativeWindowType 0xe7196e48 disconnect failed
D/ViewRootImpl@1a68380MainActivity: Relayout returned: old=(0,0,720,1520) new=(0,0,720,1520) req=(720,1520)8 dur=19 res=0x5 s={false 0} ch=true
D/ViewRootImpl@1a68380MainActivity: stopped(true) old=false
D/SurfaceView(27460): windowStopped(true) false io.flutter.embedding.android.FlutterSurfaceView{c59a186 V.E...... ........ 0,0-720,1494} of ViewRootImpl@1a68380[MainActivity]
W/ActivityThread(27460): handleWindowVisibility: no activity for token android.os.BinderProxy@8a00c18
D/PhoneWindow(27460): forceLight changed to true [] from com.android.internal.policy.PhoneWindow.updateForceLightNavigationBar:4238 com.android.internal.policy.DecorView.updateColorViews:1494 com.android.internal.policy.PhoneWindow.dispatchWindowAttributesChanged:3216 android.view.Window.setFlags:1148 com.android.internal.policy.PhoneWindow.generateLayout:2444
I/MultiWindowDecorSupport(27460): updateCaptionType >> DecorView@24c38ad[], isFloating: false, isApplication: true, hasWindowDecorCaption: false, hasWindowControllerCallback: true
D/MultiWindowDecorSupport(27460): setCaptionType = 0, DecorView = DecorView@24c38ad[]
D/ViewRootImpl@1a68380MainActivity: stopped(false) old=true
D/SurfaceView(27460): windowStopped(false) false io.flutter.embedding.android.FlutterSurfaceView{c59a186 V.E...... ........ 0,0-720,1494} of ViewRootImpl@1a68380[MainActivity]
D/ViewRootImpl@1a68380MainActivity: stopped(false) old=false
D/SurfaceView(27460): onWindowVisibilityChanged(0) true io.flutter.embedding.android.FlutterSurfaceView{c59a186 V.E...... ........ 0,0-720,1494} of ViewRootImpl@1a68380[MainActivity]
E/flutter (27460): [ERROR:flutter/lib/ui/ui_dart_state.cc(209)] Unhandled Exception: Exception: "state" parameter in response doesn't correspond to the expected value
E/flutter (27460): #0 new AuthorizationResponse.fromRedirectUri (package:oauth2_client/authorization_response.dart:32:11)
E/flutter (27460): #1 OAuth2Client.requestAuthorization (package:oauth2_client/oauth2_client.dart:233:34)
E/flutter (27460):
Hi @Mubaola23. I am facing the same issue. Did you found any fix? Note: It is happening only in some android devices.
My code Implementation as per the given documentation
I tried to use the package to get data from Spotify API. I made a new client as shown below
I used this code to get data using the helper
The Problem
This code works perfectly, except this wont store tokens Everytime this code is run, it redirects me to get an accesstoken again. So I tried the code below.
My improvisation
Error found during the improvisation When I execute this code I get the following error
Is there something wrong with the package or is my implementationwrong? Do help me out
Complete Error trace
This is the complete error trace. PS This code is in the file _spotifyclient.dart in the class SpotifyAPI