File Chooser in webview



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() {
        return global.__native(this);

    onShowFileChooser(webView, filePathCallback, fileChooserParams) {

        return true;


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


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