Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Device connected to WiFi router without Internet access #115

Closed
abrasat opened this issue Nov 3, 2017 · 3 comments
Closed

Device connected to WiFi router without Internet access #115

abrasat opened this issue Nov 3, 2017 · 3 comments

Comments

@abrasat
Copy link

abrasat commented Nov 3, 2017

If an Android device is connected via WiFi to a router that does not have Internet access, CrossConnectivity.Current.IsConnected is still returning true. Is there a better way to check if Internet is available or not ?

@jamesmontemagno
Copy link
Owner

Yup, that is correct based on the device type. You can try to ping a remote server too.

@abrasat
Copy link
Author

abrasat commented Nov 8, 2017

Thanks, I solved it by using the IsRemoteReachable() method.
Is there any "RemoteReachabilityChanged" event available in the plugin, similar to the ConnectivityChanged event ? Or how else can the application be triggered when the internet reachability changes ?

@jamesmontemagno
Copy link
Owner

there is not as it is a costly operation and not events to loop into.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants