MaikuB / flutter_appauth

A Flutter wrapper for AppAuth iOS and Android SDKs
273 stars 246 forks source link

Missing Plugin Exception #393

Closed sunilhari9 closed 1 year ago

sunilhari9 commented 1 year ago

getting following error when using flutter_appauth plugin MissingPluginException(No implementation found for method authorizeAndExchangeCode on channel crossingthestreams.io/flutter_appauth) flutter_appauth: ^4.2.1 Flutter version 3.3.9 similar to this issue https://github.com/MaikuB/flutter_appauth/issues/66

cickes commented 1 year ago

Same issue. Using the same versions as above when first experienced.

flutter_appauth: ^4.2.1  
Flutter version 3.3.9

Tried upgrading flutter to beta channel. Still experiencing same error.

    • Flutter version 3.6.0-0.1.pre on channel beta at /home/focused/snap/flutter/common/flutter
    • Upstream repository https://github.com/flutter/flutter.git
    • Framework revision 75927305ff (3 weeks ago), 2022-11-17 05:52:50 +0530
    • Engine revision b754eabc98
    • Dart version 2.19.0 (build 2.19.0-374.1.beta)
    • DevTools version 2.19.0
flutter_appauth 4.2.1  
flutter_appauth_platform_interface 5.2.0  

Yields:


MissingPluginException(No implementation found for method authorizeAndExchangeCode on channel crossingthestreams.io/flutter_appauth```
MaikuB commented 1 year ago

Please a link to repository hosting a minimal app that can reproduce the issue

FloHin commented 1 year ago

Same issue, just started a new flutter web project today, add examples of https://pub.dev/packages/flutter_appauth/example, and run against our testing keycloak -> MissingPluginException

I added a minimal example project here: https://github.com/FloHin/flutter-appauth-example/blob/main/lib/main.dart

it is mere copy&paste of the example in a new default project. You would need to add an oauth configuration

MaikuB commented 1 year ago

@FloHin this plugin doesn't support web so this would be why you have the issue. If you look at pub.dev then you'll find that it state that web isn't one of the supported platforms and that the supported platforms are Android, iOS and macOS. This aligns with what is also stated in the readme

On a different note, i'll be closing this issue as the OP has yet to provide a link to a repository with a minimal app that can reproduce the issue