ThexXTURBOXx / flutter_web_auth_2

Flutter plugin for authenticating a user with a web service
https://pub.dev/packages/flutter_web_auth_2
MIT License
51 stars 50 forks source link

[Bug]: MissingPluginException(No implementation found for method authenticate on channel flutter_web_auth_2) #126

Closed sirawatGG closed 1 week ago

sirawatGG commented 1 week ago

Description

Hello there, I received an error message on the client's phone. However, after they updated their iOS to the latest version, they were able to authenticate successfully.

I'm unsure if updating the beta version would resolve this issue. Additionally, I understand that the new approach you mentioned only affects Linux and Windows, and not mobile devices.

Minimal Reproduction

-

Exception or Error

MissingPluginException(No implementation found for method authenticate on channel flutter_web_auth_2)

Expected Behaviour

Should authen successfully

Screenshots

No response

Additional context

No response

Device

Iphone13

OS

Ios 16.2.0

Browser

-

Flutter version

3.22.2

flutter_web_auth_2 version

3.1.2

Checklist

ThexXTURBOXx commented 1 week ago

I guess this could be a race condition caused by https://github.com/flutter/flutter/issues/98473 In order to be sure that the correct implementation can be found, DartPluginRegistrant.ensureInitialized() needs to be invoked first, probably.

sirawatGG commented 1 week ago

Thank you @ThexXTURBOXx very much, I will try

ThexXTURBOXx commented 1 week ago

I will close this as this is not really related to flutter_web_auth_2