Hi Everyone,
I'm working on implementing media file downloads using Custom Tabs and I've encountered an issue in the android app. Specifically, for PDF or DOCX files, I need to download them before they can be opened. However, when
launchUrl
is called, if the file is already present, it displays "Download Pending" indefinitely. The issue is resolved by deleting the existing file from storage, allowing the download to proceed. This problem doesn’t occur with photos and videos. I'm attaching the code for reference.