AlwaysLoveme / capacitor-plugin-filedownload

a file download plugin for Capacitor3.0+
MIT License
13 stars 7 forks source link

Storage permission popup response is ignored on Android #9

Open Antoine2a opened 1 year ago

Antoine2a commented 1 year ago

Hello, I am downloading a file on my application. It works perfectly, the file is downloaded and I can find it into files folders of ExternalStorage (cf screenshot 1). But when I came back to the application there is a popup asking for storage permission. Is it normal behaviour to be able to download the file even if the result of the popup has not yet been answered? (cf screenshot 2)

Is there a way to handle the answer of the popup to prevent the downloading if the user refuses App to access storage ?

Tested : on Android 6.0.1 (Galaxy S5) and Android 12 (Pixel 3)

Screenshot_2023-05-25-17-26-51 Screenshot_2023-05-25-17-25-04

AlwaysLoveme commented 1 year ago

Hello, I am downloading a file on my application. It works perfectly, the file is downloaded and I can find it into files folders of ExternalStorage (cf screenshot 1). But when I came back to the application there is a popup asking for storage permission. Is it normal behaviour to be able to download the file even if the result of the popup has not yet been answered? (cf screenshot 2)

Is there a way to handle the answer of the popup to prevent the downloading if the user refuses App to access storage ?

Tested : on Android 6.0.1 (Galaxy S5) and Android 12 (Pixel 3)

Screenshot_2023-05-25-17-26-51 Screenshot_2023-05-25-17-25-04

fixed in latest version, thank you for using!