Skip to content
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

Crashes app on Android when pressing home button #136

Closed
micsanbr opened this issue Jul 22, 2019 · 8 comments
Closed

Crashes app on Android when pressing home button #136

micsanbr opened this issue Jul 22, 2019 · 8 comments

Comments

@micsanbr
Copy link

I am not sure what other details to include.
I've tested this on a simple Android app on my Pixel 3.
Changing orientation is not a problem but simply pressing the home button (in the middle) will crash the app every single time.
Too bad because inappbrowser seems otherwise very stable.
I still have to check on iOS.

@micsanbr
Copy link
Author

Did you just fix this? or is it because Androidx + Kotlin has somehow better support? I just completely rebuilt the app using swift (ios) and kotlin (android) with androidx dependencies and it seems that inappbrowser works perfectly ...

@MohammedYAmmar
Copy link

same problem

@micsanbr
Copy link
Author

same problem

Did you try my suggestion? does it still crash when the app is built on kotlin?

@VladimirCourse
Copy link

The same problem, app crashed with NullPointerException after Android locked. Also. it seems to common problem with other webviews: flutter/flutter#36441

@huixisheng
Copy link

same problem +1

@twopai
Copy link

twopai commented Aug 14, 2019

same problem+1

@micsanbr
Copy link
Author

to all the people replying "+1": did you try my suggestion?
I've rebuilt the app and the crash is now gone.
I'm still not using the browser because (on iOS) I cannot load files from the sandbox folder using file:/// ... but that's another issue.

@pichillilorenzo
Copy link
Owner

Now it should be fixed in 2.0.0. Also, this plugin changed its name to flutter_inappwebview. The current latest version now is 2.1.0+1. So, you can change your dependency influtter_inappwebview: ^2.1.0+1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants