项目作者: xleon

项目描述 :
A POC project to test GeoFencing capabilities with Xamarin
高级语言: C#
项目地址: git://github.com/xleon/geofencing-playground.git
创建时间: 2017-05-08T11:43:51Z
项目社区:https://github.com/xleon/geofencing-playground

开源协议:

下载


Geofencing Playground

A POC project to test GeoFencing capabilities with Xamarin

Goals achieved (in Android at the moment):

  1. A single screen application with a real time log of geofence related events.
  2. Make sure geofences work when rebooting the device
  3. Make sure geofences work when disabling and enabling back device GPS (location services)
  4. Make sure we get notifications (log entries) when entering or exiting a geofence circular region
  5. Persist log entries to a Sqlite database for further analysis
  6. Use latest Xamarin.GooglePlayServices nugets (42.1021.0 atm)

TODO

  • Button to start/stop geofencing
  • A google maps view to add geofences
  • Local notifications
  • iOS app

Important!

If your app installed on external storage(SD card),
you will never receive boot completed action (See class GeofenceBootReceiver).
So you have to specify android:installLocation=”internalOnly” in the manifest tag.
This is because android device will broadcast BOOT_COMPLETED action
before setting up the external storage.

How to fake location on a real Android device

There are a bunch of apps in Google Play that can fake the gps location.
Just install one of them. But for any them to work you´ll need to enable it in
Android settings > Development > Choose application to simulate location

Interesting links

https://developer.android.com/training/location/geofencing.html