-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
InAppBrowser crashes the app when i change the page "Lost connection" #74
Comments
Can you post here the logs please? |
one line is generated. |
Can you please repsond it fast.I am stuck just because of this issue. |
I believe that I'm experiencing the same issue. I'm getting the following error in the XCode log:
and in the Stack it looks like it's happening here: It looks like it's trying to invokeMethod 'onConsoleMessage' I have attached screenshots of what I think are the debug stack at the time of the crash. If you would like more detail that u can't see in the screens please let me know. |
Team, I am facing the same issue with flutter_inappbrowser. I am using it in a page view, i which on first page, the link is shown,and on second page, the webview is loaded. the Webview loads fine , but when i drag back to first page, the App crashes and just give one error as 'Lost connection to device'. This error is comming for IOS only and not for android. This is my code .. return new Scaffold(
} PreferredSize _createProgressIndicator() => PreferredSize( **I have also implemented fabric to do the crash analytics.. and below is the crash error, I got..I hope, the creators will be able to solve this issue by looking at below crash analytic report.** Crashlytics - plaintext stacktrace downloaded by XXXX at Tue, 09 Apr 2019 14:25:28 GMTURL: https://www.fabric.io/xxxx/issues/5cacaaa9f8b88c29633080fa?time=last-seven-days/sessions/4d78b23557ae42e9aa547e0a9cffc3af_DNE_0_v2Platform: iosVersion: 1.1.0 (2)Issue ID: 5cacaaa9f8b88c29633080faSession ID: 4d78b23557ae42e9aa547e0a9cffc3af_DNE_0_v2Date: 2019-04-09T14:01:00ZOS Version: 12.1.2 (16C101)Device: iPhone 5sRAM Free: 3.6%Disk Free: 50.9%#0. Crashed: com.apple.main-thread -- #0. Crashed: com.apple.main-thread #1. com.apple.uikit.eventfetch-thread #2. Thread #3. io.flutter.1.ui #4. io.flutter.1.gpu #5. io.flutter.1.io #6. Thread #7. JavaScriptCore bmalloc scavenger #8. com.twitter.crashlytics.ios.MachExceptionServer #9. Thread #10. com.apple.NSURLConnectionLoader #11. Thread #12. Thread #13. Thread #14. Thread |
One more screenshot, I set a breakpoint to the line of the crash and you can see that IAWController is nil and the '!' tries to unwrap a nil value throwing the error. I believe this is nil because I've gone back to the previous page and the Flutter InAppWebView is destroyed however the underlying iOS WebView is still trying to send events. |
Hey pichillilorenzo, Please check and confirm the way to resolve this issue, as there is not webview widget in flutter that gives the onProgressChange event.. Also, If pagechange triggers this issue, I was thinking of a way to dispose the webview at 90% of page change.. please suggest, if there is any function to dispose the webview. |
Friends, Any Update on the issue ? |
pichillilorenzo, please update on the rectification. this is a serious issue and we are not able to use this plugin. |
Yes! Sorry guys! I will update it as soon as possible!! |
@pichillilorenzo Friends, When will it be updated? |
Plugin updated! Try the new version |
Awesome and Thanks !! |
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug and a minimal reproduction of the issue. |
When i run the Flutter app and go to the inappbrowser and then get back to the my origin page.
it crashes the app in ios mode not in android.
Please responded fast as soon as possible.
InAppWebView(
initialUrl: 'www.google.com',
onWebViewCreated: (InAppWebViewController controller) {
webView = controller;
},
The text was updated successfully, but these errors were encountered: