why filechooser would work for chrome android 4.4 while webview doesn't?

1.5k Views Asked by At

according to Google, filechooser is taken off and no longer working on android 4.4, but why would chrome still working? I have a device that is running android 4.4. My app has a webview, and inside of this webview I have a button which allow user to upload photo. It was working fine until 4.4. my question is that how come Chrome is able to pick up filechooser event but mine is not while both apps(chrome and mine) are running on the same device. what did google do differently? Thanks!

1

There are 1 best solutions below

4
On BEST ANSWER

There was a bug which occurred in KitKat which broke the file chooser for both Chrome (https://code.google.com/p/chromium/issues/detail?id=278640) and I believe the WebView was affected by the same problem.

WebView only ever supported a file chooser through a private API (i.e. an API which developers shouldn't use or rely on), which was removed in KitKat.

The WebView team are aware of the number of developers wanting this.

As Kinlan has stated, Chrome for Android doesn't use a WebView.