Skip to content
Cross platform geofencing library that works on iOS, Android, and Windows
Branch: master
Clone or download
Latest commit 98e1427 May 12, 2019
Type Name Latest commit message Commit time
Failed to load latest commit information.
Plugin.Geofencing.Abstractions.Tests finish up 2.0 Sep 13, 2017
Plugin.Geofencing.Android minor Sep 11, 2017
Plugin.Geofencing.Geolocator.Shared finish up 2.0 Sep 13, 2017
Plugin.Geofencing.Shared v2.0 initial commit Jun 26, 2017
Plugin.Geofencing.Uwp breakout to uwp/android from general project Sep 6, 2017
Plugin.Geofencing.iOS finish up 2.0 Sep 13, 2017
Plugin.Geofencing update geofence samples and add a few minor fixes Jul 9, 2017
Samples.Core finish up 2.0 Sep 13, 2017
Samples minor Sep 11, 2017
nuspec fix nuspec and push Sep 13, 2017
.gitattributes Initial commit to add default .gitIgnore and .gitAttribute files. Jul 20, 2015
.gitignore Initial commit to add default .gitIgnore and .gitAttribute files. Jul 20, 2015
ISSUE_TEMPLATE finish notes Sep 13, 2017 v2.0 initial commit Jun 26, 2017
Plugin.Geofencing.sln breakout to uwp/android from general project Sep 6, 2017 Update May 12, 2019

UPDATE - This library has now moved to the Shiny Framework at

ACR Geofence Plugin for Xamarin & Windows

A cross platform library for Xamarin & Windows that allows for easy geofence detection


Platform Version
Xamarin.iOS iOS 6+
Xamarin.Android API 10+
Windows 10 UWP 10+


Be sure to install the Plugin.Geofencing nuget package in all of your main platform projects as well as your core/NETStandard project



Add the following to your AndroidManifest.xml

<!--this is necessary for Android v6+ to get the device name and address-->
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />


Add the following to your Info.plist

<string>Your message</string>


Add location to your app manifest capabilities section

    <DeviceCapability Name="location" />


To start monitoring

CrossGeofences.Current.StartMonitoring(new GeofenceRegion( 
    "My House", // identifier - must be unique per registered geofence
    Center = new Position(LATITUDE, LONGITUDE), // center point    
    Distance.FromKilometers(1) // radius of fence

Wire up to notifications

CrossGeofences.Current.RegionStatusChanged += (sender, args) => 
    args.State // entered or exited
    args.Region // Identifier & details

Stop monitoring a region





  • Q) Why create another geofence plugin

    A) I felt like the integration or bloat in other geofence libraries (stay, notifications, etc). I also didn't like that Google Play Services were required in Android which required your device to be online when creating the geofences. This did not work with my requirements

  • Q) Why use a cross platform GPS library for Android?

    A) James has done a ton of work around the Android geolocation mess. I didn't want to duplicate this. I just wanted to attach to an event and set the desired accuracy

  • Q) Yes, but what about google play services?

    A) The amount of code necessary to register a geofence as well as all of the junk that came with it made it annoying and no less of a drain on the battery

You can’t perform that action at this time.