ericberman / MyFlightbookAndroid

Android client app for MyFlightbook.com
http://myflightbook.com
GNU General Public License v3.0
21 stars 8 forks source link

Improve isOnline in mfbsoap to determine reachability, not just online/offline #190

Closed ericberman closed 3 years ago

ericberman commented 4 years ago

E.g., if on stratus or a firewall is blocking MyFlightbook, determine that.

ericberman commented 4 years ago

Looks like isOnline is optimistic about "true" if on the main thread - so more than anything, should call from background thread.

Most important for save pending.

ericberman commented 3 years ago

should switch away from getActiveNetworkInfo to using NetworkCallback

See https://developer.android.com/reference/android/net/ConnectivityManager.NetworkCallback

ericberman commented 3 years ago

See https://gist.github.com/PasanBhanu/730a32a9eeb180ec2950c172d54bb06a