Closed avsys-anand closed 4 years ago
I've been able to run this on Android 9+ before. Can you clone the repository and run the example app if it works on the Android 9+ devices/emulators you were using to see if it works?
Thanks for the reply! Just one question, do i need to make secure http api calls for this plugin to work ?
Can you be more specific about what you mean here? Are you referring to http token and auth endpoints or API calls that you would make after being authorised?
Also what about the response to my question on the previous post I made?
Can you clone the repository and run the example app if it works on the Android 9+ devices/emulators you were using to see if it works?
My issue here was that the redirect URL did not end with oauthredirect
Closing due to lack of further response from the original poster. Note that I've read keycloak requires extra setup on more recent versions of Android. Another poster has posted their solution in https://github.com/MaikuB/flutter_appauth/issues/92 that you may want to try out. This is specific to keycloak and not to do with this plugin
Hello,
I am developing an app in flutter and it works on version 8 and below. but 9+ versions cannot run app beyond keycloak login.
Here is my error
Error report: >> PlatformException(authorize_and_exchange_code_failed, Failed to authorize: [error: null, description: User cancelled flow], null) <<
and my config is
[√] Flutter (Channel stable, v1.12.13+hotfix.8, on Microsoft Windows [Version 10.0.17763.1039], locale en-IN) • Flutter version 1.12.13+hotfix.8 at C:\flutter • Framework revision 0b8abb4724 (3 weeks ago), 2020-02-11 11:44:36 -0800 • Engine revision e1e6ced81d • Dart version 2.7.0 [√] Android toolchain - develop for Android devices (Android SDK version 29.0.3) • Android SDK at C:\Users\avs02\AppData\Local\Android\sdk • Android NDK location not configured (optional; useful for native profiling support) • Platform android-29, build-tools 29.0.3 • Java binary at: C:\Program Files\Android\Android Studio1\jre\bin\java • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03) • All Android licenses accepted. [√] Android Studio (version 3.5) • Android Studio at C:\Program Files\Android\Android Studio1 • Flutter plugin version 43.0.1 • Dart plugin version 191.8593 • Java version OpenJDK Runtime Environment (build 1.8.0_202-release-1483-b03)
Please help!