domaven / xamarin-plugins

Cross platform Xamarin & Windows plugins for PCLs
MIT License
37 stars 51 forks source link

Double exitnotifications on exiting geofence || and || exitnotification on adding a geofence. #16

Open klingu opened 8 years ago

klingu commented 8 years ago

I have 2 issues/bugs for your plugin: which I can not explain after analysing your sample app and my own app.

1: double exitnotifications on exiting geofence. 2: On add geofence, and GPS location is outside of the added geofence. exitnotification is shown.

AD 1 I run the sample app and my own app with the same version of your Geofence plugin (1.1.2) This issue is also on version (1.1.1).

I've added 2 locations in the sample app... (Start) and (kruis1) When entering these regions, the EnterRegionMessage appears once for each region. When exiting these regions, the ExitRegionMessage appears just once for each region.

In my own application, I've added 1 location (Koningskade 4) On entering this region, the EnterRegionMessage appears just once. On exiting this region, the ExitRegionMessage appears twice. simulator screen shot 08 jul 2016 14 13 01

AD2 When I add a location via an Async Task, just like the same way you do, in my own app: I immediately get the notification I've exited the geofence.

When adding a location on the sample app, it does not show any ExitRegionMessage at all.

I'm willing to share my Solution with you.

Like to hear from you soon,

Jeffrey

Technical info: iOS 9.3.2 (Device and Simulator) Xamarin.Forms 2.3.0.107 XamarinStudio 6.0.1 (build9)

rdelrosario commented 8 years ago

Hi Jeffrey

  1. The first one is a known issue still haven't been fixed.
  2. I think what happens here is once you add a new region it gives you the initial state of it which can be enter if you are already inside or exited if you are not. Maybe this could be fixed on a next version by including two additional states inside, outside just to be able to indicate the initial status.

I am currently aware of this issues, just haven't had enought time lately to look into it. Hopefully someone would help with it.

On Friday, 8 July 2016, Jeffrey Klink Logeman notifications@github.com wrote:

I have 2 issues/bugs for your plugin: which I can not explain after analysing your sample app and my own app.

1: double exitnotifications on exiting geofence. 2: On add geofence, and GPS location is outside of the added geofence. exitnotification is shown.

AD 1 I run the sample app and my own app with the same version of your Geofence plugin (1.1.2) This issue is also on version (1.1.1).

I've added 2 locations in the sample app... (Start) and (kruis1) When entering these regions, the EnterRegionMessage appears once for each region. When exiting these regions, the ExitRegionMessage appears just once for each region.

In my own application, I've added 1 location (Koningskade 4) On entering this region, the EnterRegionMessage appears just once. On exiting this region, the ExitRegionMessage appears twice. [image: simulator screen shot 08 jul 2016 14 13 01] https://cloud.githubusercontent.com/assets/7271479/16686981/25fecf6e-4516-11e6-978e-958151d8cb43.png

AD2 When I add a location via an Async Task, just like the same way you do, in my own app: I immediately get the notification I've exited the geofence.

When adding a location on the sample app, it does not show any ExitRegionMessage at all.

I'm willing to share my Solution with you.

Like to hear from you soon,

Jeffrey

Technical info: iOS 9.3.2 (Device and Simulator) Xamarin.Forms 2.3.0.107 XamarinStudio 6.0.1 (build9)

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/domaven/xamarin-plugins/issues/16, or mute the thread https://github.com/notifications/unsubscribe/ACbgJ_Lw8axVy6ATOfWCJia5J73YqW75ks5qTkawgaJpZM4JH_5X .

klingu commented 8 years ago

I just noticed I get the exit and enter notifications when I start my own App... (I've 3 regions at this time).

And when starting the sample app... I do not... (2 regions)

rdelrosario commented 8 years ago

Sample app is not updated. The bug seems to be on the plugin most recent versions.