Open williamont opened 4 years ago
i have same problem, this is about requested permission, how to allow html5 qr scanner in webview?
add this inside webchromeclient, it works!
@Override public void onPermissionRequest(android.webkit.PermissionRequest request) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) { request.grant(request.getResources()); } }
oh gods, only work on emulator, not work on real device
I'm sorry @jakfarza but you made me chuckle, thanks for that and the suggestion. I've been real lazy, but hope to test your solution out on real devices.
Be safe and take care you both.
Ok sir.please give me solution... why not work in real device...😀
I couldn't even in the emulator :(
@jakfarza managed to implement?
Has anyone managed to implement QRCODE reader?
hello, sorry for my english. I'm having trouble implementing a qrcode reader, I tried instscan (https://github.com/schmich/instascan) and Zxing (https://github.com/yushulx/zxing-cpp-emscripten), both use js .
In conventional browsers (firefox, chrome) work normally and I have not found the reason for giving an error in SmartView.
The screen runs out of content, as if it were not allowed to charge the camera.
My SmartWebView
`/ -- PERMISSION VARIABLES -- / static boolean ASWP_JSCRIPT = true; // enable JavaScript for webview static boolean ASWP_FUPLOAD = true; // upload file from webview static boolean ASWP_CAMUPLOAD = true; // enable upload from camera for photos static boolean ASWP_ONLYCAM = false; // incase you want only camera files to upload static boolean ASWP_MULFILE = true; // upload multiple files in webview static boolean ASWP_LOCATION = true; // track GPS locations static boolean ASWP_CP = true; // enable copy/paste within webview