Geofencing Xamarin Android无法正常工作

时间:2015-06-16 12:54:48

标签: xamarin xamarin.android geofencing

我们在Xamarin Android中实施地理围栏时遇到问题。没有关于monodroid的Geo-fencing的文档。因此,我们通过使用新的Geo-fencing API将Android代码移植到Xamarin来尝试它,该API使用了“LocationServices”#39;从以下链接。

https://github.com/googlesamples/android-play-location/tree/master/Geofencing

但这不适用于xamarin。相同的原生Android代码返回Geo-fence转换事件。

我们正在使用GooglePlayServices版本22.0.0.0库。

我们还尝试了以下链接中给出的示例,这实际上是一个单体样本。此实现基于已弃用的类&LocationClient'。为此,我们降级了GooglePlayServices'版本21.0.0。

https://github.com/xamarin/monodroid-samples/tree/master/wear/Geofencing

但这也行不通。在两种实现中,都会触发连接回调。那就是我们将获得Geo-fence添加的消息。服务也开始了。但转换事件包括“初始触发”,“转换输入”,“转换退出”等。不开火。请就此提出建议。

0 个答案:

没有答案