Nodrex / Testomania

In practice more knowledge comes
https://play.google.com/store/apps/details?id=com.earth.testomania
Creative Commons Zero v1.0 Universal
49 stars 3 forks source link

Advance network status checker #281

Open Nodrex opened 1 year ago

Nodrex commented 1 year ago

Android SDK has the ability to check whether the wifi/mobile data toggle is on/off, but it can not detect if a network is down, we need to write our own URL pinger. So if there are no libraries to implement this functionality we can create our own and combine Androids Official API and URL pinger and create a new independent library, maybe even be multiplatform

kdiakonidze commented 1 year ago

we can check retrofit response for IOException, instead of pinging some url. There is no reason to display network status for user, if user does not using it.