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

Shut down of the webview screen #11

Closed
tenhobi opened this issue Aug 27, 2017 · 3 comments
Closed

Shut down of the webview screen #11

tenhobi opened this issue Aug 27, 2017 · 3 comments

Comments

@tenhobi
Copy link
Contributor

tenhobi commented Aug 27, 2017

When I try to connect to any webpage, it works a few seconds and then it shuts down the webview screen.

This is log of the Flutter app:

I/cr_Ime  ( 4929): ImeThread is enabled.
E/chromium( 4929): [ERROR:interface_registry.cc(104)] Failed to locate a binder for interface: autofill::mojom::PasswordManagerDriver
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
D/EGL_emulation( 4929): eglMakeCurrent: 0xb4e054e0: ver 2 0 (tinfo 0xa9b26410)
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/cr_BindingManager( 4929): Cannot call determinedVisibility() - never saw a connection for the pid: 4929
W/IInputConnectionWrapper( 4929): finishComposingText on inactive InputConnection
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
I/art     ( 4929): Background partial concurrent mark sweep GC freed 12(352B) AllocSpace objects, 2(23MB) LOS objects, 11% free, 30MB/34MB, paused 13.058ms total 37.816ms
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
W/art     ( 4929): Attempt to remove non-JNI local reference, dumping thread
D/EGL_emulation( 4929): eglCreateContext: 0x84a16f20: maj 2 min 0 rcv 2
D/EGL_emulation( 4929): eglMakeCurrent: 0x84a16f20: ver 2 0 (tinfo 0xa6fda500)
D/EGL_emulation( 4929): eglMakeCurrent: 0x84a16f20: ver 2 0 (tinfo 0xa6fda530)
D/EGL_emulation( 4929): eglMakeCurrent: 0xb4e054e0: ver 2 0 (tinfo 0xa9b26410)
D/EGL_emulation( 4929): eglMakeCurrent: 0xb4e054e0: ver 2 0 (tinfo 0xa9b26410)
D/EGL_emulation( 4929): eglMakeCurrent: 0xb4e054e0: ver 2 0 (tinfo 0xa9b26410)
D/EGL_emulation( 4929): eglMakeCurrent: 0xb4e078e0: ver 2 0 (tinfo 0x92d39e60)

Is this only some Android emulator-related stuff, or it doesn't works at all? The code of my app is the same as the code in example/lib/main.dart folder of this project.

The same issue is on my phone, where it's also prints "Webview Destroyed".

Emulator: Pixel XL API 25 on Windows 10
My phone: Honor Holly, Android v4.4.2

@tenhobi
Copy link
Contributor Author

tenhobi commented Aug 27, 2017

OK, it seems that you was too clever to put timer to close the view to your example... https://github.com/dart-flitter/flutter_webview_plugin/blob/master/example/lib/main.dart#L95-L97

Kind of WTF. I will probably send a PR with some enhancement to you README and example soon. ;)

@tenhobi tenhobi closed this as completed Aug 27, 2017
@lejard-h
Copy link
Collaborator

I agree, I used the example to show every possible usage of the API, a background timer was the only solution I found to show close function.

I will clean the example and add comment to it.

@tenhobi
Copy link
Contributor Author

tenhobi commented Aug 27, 2017

@lejard-h maybe we could do another button with "open and close afterwise" label to show this behavior? :-)

Making "hidden" timed close is IMHO not a good example.

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

2 participants