You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have metabase that can download/export the file to xlsx, json or csv. When I tap the export button (web view), It shows toast "Downloading", maybe it is from default webviewer/browser, but the Downloads will never be succeed. It wil shows "Download failed" after some minutes.
But when I try to load the metabase chart in browser like Chrome (android) and then tap export, the download works flawlessly.
I dont know why but looks like it cannot download a file inside webview app. If its true, how to intercept the tap button? So I can handle the download manually? Using onNavigationStateChange is not working because it remains on the same url or page.
Also Ive added permission to WRITE_EXTERNAL_STORAGE but still not working.
To Reproduce:
Load a metabase chart to your webview in react native. Then tap export. It will shows "Downloading" toast but it will failed after some minutes. Only happen in webview inside app, it works correctly on browser chrome etc
Expected behavior:
It should be download success. OR if it is not possible, How to intercept tap button?
Screenshots/Videos:
2022-03-10.14-03-18.mp4
Screenshot of unsuccessful download:
Environment:
OS: Android
OS version: Android 11
react-native version: 0.65.1
react-native-webview version: 11.17.2
The text was updated successfully, but these errors were encountered:
I fixed this with onShouldStartWithRequest then check the url if it contains an xlsx/csv (it means to be export url). And manually download it with RNFS
Bug description:
I have metabase that can download/export the file to xlsx, json or csv. When I tap the export button (web view), It shows toast "Downloading", maybe it is from default webviewer/browser, but the Downloads will never be succeed. It wil shows "Download failed" after some minutes.
But when I try to load the metabase chart in browser like Chrome (android) and then tap export, the download works flawlessly.
I dont know why but looks like it cannot download a file inside webview app. If its true, how to intercept the tap button? So I can handle the download manually? Using onNavigationStateChange is not working because it remains on the same url or page.
Also Ive added permission to WRITE_EXTERNAL_STORAGE but still not working.
To Reproduce:
Load a metabase chart to your webview in react native. Then tap export. It will shows "Downloading" toast but it will failed after some minutes. Only happen in webview inside app, it works correctly on browser chrome etc
Expected behavior:
It should be download success. OR if it is not possible, How to intercept tap button?
Screenshots/Videos:
2022-03-10.14-03-18.mp4
Screenshot of unsuccessful download:
![Screenshot from 2022-03-10 14-17-35](https://user-images.githubusercontent.com/26734262/157609017-453a0ac0-732d-45d7-86cf-a8210f4b481b.png)
Environment:
The text was updated successfully, but these errors were encountered: