I would like to ask a question regarding my download process in my app.
What happened?
I implemented a WebView viewing OneDrive, allowing users to download file through that cloud storage to the phone’s internal storage. Before the Android update, the download process can be done within seconds, but after the Android update (I assume it is updated to Android 12), the download from OneDrive cannot be started (progress stays at 0%), while downloads from other sites (e.g. ApkPure) works well.
Just to note, when I try this in another version of Android, that is Oreo in Companion, the download process works awesomely.
How are the blocks?
Below are my blocks related to the downloading process
I have initialized it when the screen is initialized. I just do not put it in the photo, sorry.
Just to add, apparently, the official Download component (not the extension) works well to download .mp4 file from OneDrive if it is being tested on a phone with the Android version lower than 11.
This makes no sense, at least not on Android 11+. You must choose a path in the ASD
or in one of the Shared folders that is accessible on Android 11+ (e.g. /Download or /Documents or for media files /Pictures).
I have read your guide and decided to add the “Download through Browser” button that is intended to be pressed by user whose Android version is new. I will wait for the next update aimed to add the required feature in Android 11 or higher.
Please take care and stay healthy.
I will mark this as a solution.