{"id":13709892,"url":"https://github.com/aritchie/geofences","last_synced_at":"2026-01-14T04:11:09.051Z","repository":{"id":35245271,"uuid":"39504890","full_name":"aritchie/geofences","owner":"aritchie","description":"Cross platform geofencing library that works on iOS, Android, and Windows","archived":true,"fork":false,"pushed_at":"2021-08-04T21:19:26.000Z","size":5631,"stargazers_count":61,"open_issues_count":6,"forks_count":18,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-09-26T09:43:34.138Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aritchie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-07-22T12:31:24.000Z","updated_at":"2025-02-09T06:55:45.000Z","dependencies_parsed_at":"2022-09-16T20:20:58.711Z","dependency_job_id":null,"html_url":"https://github.com/aritchie/geofences","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/aritchie/geofences","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fgeofences","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fgeofences/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fgeofences/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fgeofences/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aritchie","download_url":"https://codeload.github.com/aritchie/geofences/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aritchie%2Fgeofences/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28409140,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T01:52:23.358Z","status":"online","status_checked_at":"2026-01-14T02:00:06.678Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-02T23:00:48.013Z","updated_at":"2026-01-14T04:11:09.035Z","avatar_url":"https://github.com/aritchie.png","language":"C#","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# UPDATE - This library has now moved to the Shiny Framework at https://github.com/shinyorg/shiny\n\n\n## ACR Geofence Plugin for Xamarin \u0026 Windows\n\nA cross platform library for Xamarin \u0026 Windows that allows for easy geofence detection\n\n## PLATFORMS\n\n|Platform|Version|\n| ------------------- |:------------------: |\n|Xamarin.iOS|iOS 6+|\n|Xamarin.Android|API 10+|\n|Windows 10 UWP|10+|\n\n## SETUP\n\nBe sure to install the Plugin.Geofencing nuget package in all of your main platform projects as well as your core/NETStandard project\n\n[![NuGet](https://img.shields.io/nuget/v/Plugin.Geofencing.svg?maxAge=2592000)](https://www.nuget.org/packages/Plugin.Geofencing/)\n\n**Android**\n\nAdd the following to your AndroidManifest.xml\n\n```xml\n\u003c!--this is necessary for Android v6+ to get the device name and address--\u003e\n\u003cuses-permission android:name=\"android.permission.ACCESS_COARSE_LOCATION\" /\u003e\n```\n\n**iOS**\n\nAdd the following to your Info.plist\n\n```xml\n\u003ckey\u003eNSLocationAlwaysUsageDescription\u003c/key\u003e\n\u003cstring\u003eYour message\u003c/string\u003e\n```\n\n**UWP**\n\nAdd location to your app manifest capabilities section\n\n```xml\n\u003cCapabilities\u003e\n    \u003cDeviceCapability Name=\"location\" /\u003e\n\u003c/Capabilities\u003e\n```\n\n## HOW TO USE\n\n### To start monitoring\n\n    CrossGeofences.Current.StartMonitoring(new GeofenceRegion( \n        \"My House\", // identifier - must be unique per registered geofence\n        Center = new Position(LATITUDE, LONGITUDE), // center point    \n        Distance.FromKilometers(1) // radius of fence\n    ));\n\n### Wire up to notifications\n\n    CrossGeofences.Current.RegionStatusChanged += (sender, args) =\u003e \n    {\n        args.State // entered or exited\n        args.Region // Identifier \u0026 details\n    };\n\n### Stop monitoring a region\n    \n    CrossGeofences.Current.StopMonitoring(GeofenceRegion);\n\n    or\n\n    CrossGeofences.Current.StopAllMonitoring();\n\n\n### FAQ\n\n* Q) Why create another geofence plugin\n\n  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\n\n* Q) Why use a cross platform GPS library for Android?\n  \n  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\n\n* Q) Yes, but what about google play services?\n\n  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\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faritchie%2Fgeofences","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faritchie%2Fgeofences","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faritchie%2Fgeofences/lists"}