File Chooser in webview

android

#1

I want to implement the following code in a native script

in web chrome client for truly android file choose can someone help

for file upload i have implemented webchromeclient and

export class MyWebChromeClient extends android.webkit.WebChromeClient
 {
   
    constructor() {
        super();
  
        return global.__native(this);
    }





    onShowFileChooser(webView, filePathCallback, fileChooserParams) {



        return true;
    }

#2

Sorry, can you please explain a bit detail on what exactly the issue here? Is it the onShowFileChooser never called?


#3

in file upload action in android
I want to call intent chooser for camera or files.