public override void OnReceive(Context context, Intent intent) { var cm = (ConnectivityManager)context.GetSystemService(this.Class); if (GefenceLocation.gefenceModel == null && cm.ActiveNetworkInfo.IsConnected) { if (GefenceLocation.ResetGeofnceModel()) { GefenceLocation.UpdateLocation(); } } }
public override void OnReceive(Context context, Intent intent) { if (IsOnline(context)) { if (GefenceLocation.gefenceModel == null) { if (GefenceLocation.ResetGeofnceModel()) { GefenceLocation.UpdateLocation(); } } } }