Exemple #1
0
        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();
                }
            }
        }
Exemple #2
0
 public override void OnReceive(Context context, Intent intent)
 {
     if (IsOnline(context))
     {
         if (GefenceLocation.gefenceModel == null)
         {
             if (GefenceLocation.ResetGeofnceModel())
             {
                 GefenceLocation.UpdateLocation();
             }
         }
     }
 }