HomeiOS Developmentjavascript - Permitting html to solely seize a picture with digital camera...

javascript – Permitting html to solely seize a picture with digital camera or solely choose a file picture


I acquired drawback when dealing with add case, buyer need to implement the UI like this

enter image description here

this characteristic is an online characteristic, that may implement to native by way of WebView Part.

presently, I dealt with this with code

<label for="takepicture"> 
            Take Image 
            <enter id="takepicture" kind="file" settle for="picture/*" seize="true" />
        </label>
        <br />
    
        <label for="chooseimage">
            Select Picture 
            <enter id="chooseimage" kind="file" settle for="picture/*" />
 </label>

I examined with Xiaomi Redmi 9T

  1. The take image is works with Webview, the digital camera proven when was clicking the enter file.

  2. Select picture can also be works advantageous with WebView, the file picker displaying

enter image description here

however there’s nonetheless Digital camera button there, I count on to not displaying the digital camera button there, trigger I’ve already button for take image.

Thanks prematurely.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments