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

iOS: Add SceneDelegate handling to fix ACQUIRE_ROOT_VIEW_CONTROLLER_FAILED #128

Open Will5 opened 1 week ago

Will5 commented 1 week ago

This is a follow-up from https://github.com/LinusU/flutter_web_auth/pull/145.

I encountered this error again, and, after some research, I found that "As of iOS 13, UIApplication.shared.delegate?.window has been deprecated. Instead, you should use the SceneDelegate to get the root view controller. If you're targeting iOS 13 and later, you should update your code to handle this.". This attempts to address that (still testing)

Will5 commented 1 week ago

This did not work yet 🙁

ThexXTURBOXx commented 1 week ago

Feel free to experiment a bit - I will merge this when it's working!