Open lgArlequin opened 6 years ago
Error in android emulator:
D/cr_Ime ( 4708): [InputMethodManagerWrapper.java:30] Constructor
W/cr_AwContents( 4708): onDetachedFromWindow called when already detached. Ignoring
D/cr_Ime ( 4708): [InputMethodManagerWrapper.java:59] isActive: false
I/cr_Ime ( 4708): ImeThread is not enabled.
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
D/EGL_emulation( 4708): eglMakeCurrent: 0x94cdb8c0: ver 2 0 (tinfo 0xa30fd010)
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
I/art ( 4708): Background sticky concurrent mark sweep GC freed 1727(75KB) AllocSpace objects, 0(0B) LOS objects, 0% free, 14MB/14MB, paused 6.713ms total 40.185ms
W/cr_BindingManager( 4708): Cannot call determinedVisibility() - never saw a connection for the pid: 4708
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
W/art ( 4708): Attempt to remove non-JNI local reference, dumping thread
Apparently it is a problem of the android webview, it is a problem that is repeated on several platforms.
The momentary solution that I found is loading the pdf through the google drive viewer
"http://drive.google.com/viewerng/viewer?embedded=true&url=" + pdf
In case someone had this same problem.
Apparently it is a problem of the android webview, it is a problem that is repeated on several platforms. The momentary solution that I found is loading the pdf through the google drive viewer
"http://drive.google.com/viewerng/viewer?embedded=true&url=" + pdf
In case someone had this same problem.
does it work for iOS platform?
@Abgaryan In ios I had no problems with putting the url directly in some cases. try this plugin, work for me: https://pub.dartlang.org/packages/flutter_full_pdf_viewer
@lgArlequin, The Webview doesn't render PDFs, unfortunately. The solution you specified works for online files, though there are are some setbacks (there's the GDrive button that you can't get rid of, etc).
flutter_full_pdf_viewer is a good workaround. https://github.com/pycampers/flutter_pdf_viewer also works great, though it isn't inline yet. :)
Apparently it is a problem of the android webview, it is a problem that is repeated on several platforms. The momentary solution that I found is loading the pdf through the google drive viewer
"http://drive.google.com/viewerng/viewer?embedded=true&url=" + pdf
In case someone had this same problem.
its work thanks
I am opening some files with extensions such as .pdf, .mov(video of mac) and unable to open in android webview and able to open ios webview. I am accessing these files from microsoft one drive and connecting to webview to open these files.
Another issue is .png files are not fitting inside one view in android webview, where as in iOS it is fitting on single screen.
Since my one drive microsoft is in webview and i cannot open in flutter_pdf_viewer
Links hosted on AWS does not work too. You guys have Any perspective when this issue will be solve?
I have problems trying to show a pdf, in android directly it never loads them and in Ios, it depends on the server, if it is https it shows them, if it is http, it does not show them.
In apple I have no feedback. In Android I have this the first time I run the plugin:
I'm using WebviewScaffold, but I just realized that when I try to open a fullscreen or a rect, it does not do anything (android). It also does not show any error.
Pdf examples: http://www.pdfpdf.com/samples/Sample1.PDF (not work in android or ios) https://www.adobe.com/support/products/enterprise/knowledgecenter/media/c4611_sample_explain.pdf (only work in ios)
Tested in Iphone 6 (ios 11.4.1), and MotoG3 (android 6.0)
This is my flutter doctor.