jamesmontemagno / Xamarin.Plugins

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

Is it possible to use this plugin (Connectivity) to monitor the network change background? #270

Closed xinmeng1 closed 8 years ago

xinmeng1 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: Device Tested On: Simulator Tested On:

Expected Behavior

Is it possible to use this plugin (Connectivity) to monitor the network change background? I had implement this function on Android with Broadcast Receiver, and I am worrying for the iOS. According to some material, it said I can use the location to implement the long time running task background. So, is it possible to use this plugin to do this job?

Actual Behavior

Steps to reproduce the Behavior

jamesmontemagno commented 8 years ago

On android it receives it automatically via the broadcast receiver and then any other network change on iOS it gets in the background too. If your app goes into the background and comes to the foreground simply check the isconnected again.

Else subscribe to events in the App Delegate.