Using the plugin in add-to-app fails with an exception #166
olivierwgu
started this conversation in
General
Replies: 1 comment 1 reply
-
|
Which version of the plugin are you using? The 4.x release or the 5.0.0 alpha? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I have created my own plugin that implements our OIDC flow and uses flutter_web_auth_2 plugin to present the webview.
My plugin provides a button widget (login) that is used to configure and start the OIDC flow. When I try to start the OIDC flow, I am getting an exception thrown by your plugin as it cannot find the root view controller.
It seems the root view controller does not get propagated down to your module. Not sure how to fix this.
The exception is:
ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: PlatformException(ACQUIRE_ROOT_VIEW_CONTROLLER_FAILED, Failed to acquire root view controller, null, null)
#0 StandardMethodCodec.decodeEnvelope (package:flutter/src/services/message_codecs.dart:652:7)
#1 MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:370:18)
#2 FlutterWebAuth2MethodChannel.authenticate (package:flutter_web_auth_2_platform_interface/method_channel/method_channel.dart:14:7)
#3 AuthenticationRepositoryImpl.authenticateUserOIDC (package:core/data/repositories/authentication_repository_impl.dart:108:20)
Beta Was this translation helpful? Give feedback.
All reactions