jamesmontemagno / Xamarin.Plugins

Cross-platform Native API Access from Shared Code!
MIT License
1.3k stars 380 forks source link

Require Remote Connectivity #299

Closed dansiegel closed 8 years ago

dansiegel commented 8 years ago

Please take a moment to fill out the following (change to preview to check or place x in []):

This is a

Which plugin does this impact:

Version Number of Plugin: 2.1.2 Device Tested On: Simulator Tested On:

Expected Behavior

It would be nice to do more than manually check if a remote host is reachable. The plugin should have a mechanism to require a remote host is reachable and in the event that the host is not reachable a ConnectivityChanged event or possibly a new event should be triggered. This would be helpful particularly for Enterprise Applications which may require connectivity to a private Api and the device may experience loss of connectivity to that host while still being connected to the internet.

Actual Behavior

Steps to reproduce the Behavior

jamesmontemagno commented 8 years ago

This is a pretty cool idea, however I am not sure if there are actual APIs to monitor this. You would have to try to leave a constant socket open to the end point and pass data back and forth. If you have any ideas let me know, but I don't think it is possible across all platforms.

jamesmontemagno commented 8 years ago

Moved to: https://github.com/jamesmontemagno/ConnectivityPlugin/issues/4