showly-2.0 icon indicating copy to clipboard operation
showly-2.0 copied to clipboard

Implement internet connectivity check

Open esQmo opened this issue 5 years ago • 4 comments
trafficstars

Actually the app only checks if the device is connected to either WiFi or data connection. Would be great to check for connectivity instead: if the actual network has connectivity, has access to internet. Do you think you can add this too?

esQmo avatar Oct 30 '20 11:10 esQmo

The internet connectivity should be checked using:

https://github.com/michaldrabik/showly-2.0/blob/58ef9630a2d0ca3ab3470667795d0cacffff4466/app/src/main/java/com/michaldrabik/showly2/utilities/NetworkMonitorCallbacks.kt#L33

Did you actually stumbled upon different case?

michaldrabik avatar Oct 30 '20 14:10 michaldrabik

Sorry, didn't get the notification. Well the callbacks work when the device isn't connected to a network (wifi or data connection). But what I'm pointing is the fact that the app doens't check if the actual connection has internet connectitiy. Tried on a Wifi hotspot and data connection (4G) with no internet and the callbacks is not triggered, no message is being shown

esQmo avatar Nov 09 '20 10:11 esQmo

Thanks. I will give it a second look then. I think it's not that fatal issue anyway as this case is quite rare I suppose. And in that case you will still get a standard error If you try to do an action that requires internet.

Thanks!

michaldrabik avatar Nov 09 '20 10:11 michaldrabik

Indeed, this is not a big issue anyway. I just thought it would be nice if that feature was implemented, like in Netflix (however I only checked for low speed connection).

esQmo avatar Nov 10 '20 21:11 esQmo