amitshekhariitbhu / PRDownloader

PRDownloader - A file downloader library for Android with pause and resume support
https://outcomeschool.com
Apache License 2.0
3.26k stars 527 forks source link

Unknown protocol #213

Open CarlosCMD opened 3 months ago

CarlosCMD commented 3 months ago

Getting error: unknown protocol: data

sajjadyousefnia commented 3 months ago

please give more description

CarlosCMD commented 3 months ago

Saving a file(processed txt) from a Js web app hosted locally results in the error above. The AdvancedWebView is able to process the download request but after passing URL to prdownloader the above error occurs. Found alternative but the issue is still worth checking out.

sajjadyousefnia commented 3 months ago

Is the format of the intended file .txt? can you provide a sample file link for testing?

CarlosCMD commented 3 months ago

It's plain text data, maybe checking out the local web app might help? It's a basic web game and it saves data by exporting it in a file. Here's the repo https://github.com/veprogames/idle-football-manager , the "download" save game is located in the settings section which should start downloading a txt file to the specified location.

sajjadyousefnia commented 3 months ago

give a link to download file

CarlosCMD commented 3 months ago

give a link to download file

It created by Js, I can't find the function but you can dig up here: https://github.com/veprogames/idle-football-manager/blob/main/js/components/tabs/tab-settings.js