Closed leakb closed 1 year ago
Hi. Regarding the logs you shared:
iOS: It seems an issue with getCertificate()
function on flutter_inappwebview
plugin, I'm not sure if you are setting a custom certificate validator, anyways the getCertificate()
function should not throw MissingPluginException, I just tested it with latest version and it just work... I have no idea if some dependency conflict could cause such exception. For this I can only recommend to check the flutter_inappwebview
docs about certificate handling.
Android: about setState()
called after dispose()
, you can check the only Widget in which oauth_webauth
uses setState()
is in base_web_view.dart
in which I override the function to make sure setState to be called only if widget is already mounted, so no way to be called after dispose. And about hybrid composition, this is set to true by default, you could test it with false in the sample code to see if it fixes something.
I wish I could be of more help, but I haven't been able to reproduce such issues, yes the Android issue seems similar to #7 and I tested a lot there but I couldn't reproduce the issue. I use this plugin in 2 big projects with a lot of dependencies and I have been using it since first release almost 2 years ago. I have used it to authenticate with Keycloak using OAuth 2 Authorization code grant.
My recommendation which is the same I did for the other issue: Test the sample project in the plugin sources, use the sample project pointing to your OAuth identity provider server, there you will be able to debug and check where is failing. If it works as expected then add the rest of the dependencies you use in your project to check if something is conflicting with it.
Hi,
did as you recommended: Used the sample project and plugged in my OID provider server credentials/config -> everything works as expected Added all the dependencies i use in my App and added them to the sample project -> everything is working perfectly Added parts of the login widget from my app to the sample project -> still everything works
I had no luck identifying what causes the problem. It is some weird interaction between the rest of my app code and the webview. I'll take a break from this particular problem and revisit it when i have upgraded to Flutter >= 3.10.
Thanks @leakb for reporting it.
Hi,
I got a curious behavior when I try to use this library.
Whenever i click on anything inside the webview (link, text field, radio button) the webview seems to crash and restart. In the terminal I can see following output for iOS / Android:
iOS
Android
My assumtion being, this is merely a symptom of the crash, not the cause.
Setup: iOS 16.2 Android API 30
pubspec.yaml
Code: Within a TraceableStatefulWidget
Within the Authentication class
This also sounds really similar to another issue from last year: #7 . Did that ever get resolved? Any help would be appreciated.