How to keep 50% Native Camera & 50% web views in single web view of capacitor WKWebView #3720
Replies: 2 comments
-
https://github.com/capacitor-community/camera-preview#startoptions might be helpful. It has x, y, width and height params in |
Beta Was this translation helpful? Give feedback.
-
Check out https://github.com/DutchConcepts/capacitor-barcode-scanner. It is heavily based on bitpays cordova barcode scanner. That means that the WebView is made transparent, and the barcode scanner is rendered behind it. This way, it is made possible to have full control over the layout with HTML/CSS. Only thing is that after each scan result (barcode recognized) you will have to call |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
We want to use native barcode scanning library(google gms) & show the scanning result below the camera screen in webview, where one single web view contains below:
We are using capacitor to run our app in Web, Android & iOS. The problem is in Scanning screen of native App(Android & iOS).
If we use capacitor Camera plugin, then its opening in full screen,
Expectation:
we want to use native camera view & native barcode scanning library, which will continuously scans the barcode using native barcode library(google gms) & gives the barcode values to the webView.
The webview contains native camera View in upper half of the screen & web view list in the bottom half of the screen to show the scanned barcode value.
Please let me know how to achieve this using capacitor with mixed native views & web views in single WKWebView screen?
This is already possible in react-native-camera, which uses native camera with google gms for barcode scanning. The question is how to achieve same in capacitor?
Beta Was this translation helpful? Give feedback.
All reactions