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
57 stars 55 forks source link

iOS: Add SceneDelegate handling to fix ACQUIRE_ROOT_VIEW_CONTROLLER_FAILED #128

Closed Will5 closed 2 days ago

Will5 commented 2 months 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 2 months ago

This did not work yet 🙁

ThexXTURBOXx commented 2 months ago

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

ThexXTURBOXx commented 2 days ago

Closing for now due to being stale - feel free to reopen this or open another PR when ready!