trustwallet / trust-wallet-android-source

Trust - Ethereum Wallet for Android (Inactive Repository)
https://trustwalletapp.com
GNU General Public License v3.0
383 stars 257 forks source link

Problems with DAPP browser on Android #37

Open GasiorowskiPiotr opened 5 years ago

GasiorowskiPiotr commented 5 years ago

Hello,

I'm not quite sure is it a right place to ask this sort of questions, but since Trust Wallet for Android is no longer open-source...

Using the built-in DAPP browser on Android, when I encounter the HTML element <input type="file".../> I cannot pick file other than image (in fact the browser does not respect accept attribute on file input... What is even more - trying to choose file once again does not even open the file picker. Has anyone else encountered this problem while developing DAPPs?

eddywm commented 5 years ago

Hi @GasiorowskiPiotr, I believe the issue you encountered was an intentional feature from Google. They decided to disable that feature starting fromAndroid Kitkat 4.4 for security reasons.

You can follow the thread on this link https://issuetracker.google.com/issues/36983532

GasiorowskiPiotr commented 5 years ago

Hello @eddywm . The funny thing is that I can open a file picker dialog from Trust Wallet but only once, all subsequent attempts fail. And even when it is opened for the first time, I can only pick images, never PDF files (which is a requirement in our DAPP). I was thinking you are doing some sort of workaround for this limitation, but as this seems not to be the case, please close this issue, and I will be monitoring the thread you provided. Thanks for the clarification!