quran / quran_android

a quran reading application for android
http://android.quran.com
GNU General Public License v3.0
2.01k stars 890 forks source link

Connection issue #1210

Closed Bakhrom closed 3 years ago

Bakhrom commented 5 years ago

When using in Uzbekistan, there are problems with the download, it probably appeared after blocking Facebook in 2018. When using custom dns (1dot1dot1dot1.cloudflare-dns.com), the application works with mobile internet. Otherwise, only with VPN. Is there any way to solve this problem from the application side?

ibragimof commented 4 years ago

The same problem. Please, fix it for users from Uzbekistan. Screenshot_2019-12-02-17-18-58-461_com quran labs androidquran Screenshot_2019-12-02-17-17-08-995_com quran labs androidquran

ozbek commented 4 years ago

ATM, setting up Cloudflare DNS by end users seems to be the only resolution to the issue.

ibragimof commented 4 years ago

Updating in client side not resolved the problem. Still connection possible via vpn (and only).

ahmedre commented 3 years ago

salam 3alaikum, @ibragimof i just set up a test that goes to cloudflare after the first failure so that the files download through cloudflare instead of directly through our servers - may you try this apk out (it should be installable side by side with the production one so you don't lose any data) and see if you can download the initial set of images with it and let me know?

http://cafesalam.net/uploads/quran-test-cloudflare.apk

if it doesn't work, may you go to settings -> advanced -> send logs and send us the logs? jazakumAllah khairan, walsalam 3alaikum

ozbek commented 3 years ago

ping @Bakhrom

Bakhrom commented 3 years ago

Page loading working, but audio, translations, "Page Type (experimental)" not working Logs.txt

scr1 scr2 src3 scr4 scr5

ahmedre commented 3 years ago

jazakumAllah khairan for testing this - i am glad the download works - this is promising in sha' Allah since it brings the hope of being able to fix this for people in Uzbekistan closer. unfortunately, i cannot use this solution in production because the terms of service for Cloudflare don't allow its usage for non-web (css/js/...) type traffic, and it can result in termination of the account.

i made a small app that tries to load an image from our server in several different ways - may you try all of these out and post the logs at the end?

it looks something like this:

Screen Shot 2020-12-21 at 9 11 14 PM

you can find it here:

http://cafesalam.net/uploads/network-test.apk

jazakumAllah khairan! walsalam 3alaikum.

Bakhrom commented 3 years ago

Logs-netwok.txt First three items not worked

ahmedre commented 3 years ago

al7amdulillah awesome! got a solution then for the next version in sha' Allah, may Allah reward you greatly!

Bakhrom commented 3 years ago

Jazakumullohu khoyron kasiro

ahmedre commented 3 years ago

i've made the changes and updated the actual Quran app - may you try this out? http://cafesalam.net/uploads/quran-updated-servers.apk

it should (in sha' Allah) work for pages, translations, page types, and (hopefully in sha' Allah) audio.

for audio, because there are 2 separate urls, can you try at least one gapless sheikh and one gapped sheikh? also, please make sure to test with the streaming setting turned off (i didn't do anything for streaming yet, only for download).

jazakumAllah khairan!

Bakhrom commented 3 years ago

Loading pages, audio and experimental pages work. Only when loading each ayah, it waits a little with an error (Network error, resume downloading) then loads this ayah, it would be nice if it was not possible to connect to the main url, then use falbak url in this session, But main things that everything works. Submitting logs doesn't work, so I was unable to submit logs.

Jazakumullohu khoyron kasiro!

ahmedre commented 3 years ago

awesome to hear, jazakumAllah khairan! i'll implement your suggestion of going to the fallback by default after the fallback succeeds once in sha' Allah.

Bakhrom commented 3 years ago

Thank you

ahmedre commented 3 years ago

this is now being released, should get the update within the next few days if you haven't already - closing for now. jazakumAllah khairan for your help!