{"action":"created","issue":{"url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/423","repository_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation","labels_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/423/comments","events_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/423/events","html_url":"https://github.com/transistorsoft/react-native-background-geolocation/issues/423","id":302294831,"number":423,"title":"Event-listener geofence doesn't work as expected","user":{"login":"buskerone","id":2034112,"avatar_url":"https://avatars0.githubusercontent.com/u/2034112?v=4","gravatar_id":"","url":"https://api.github.com/users/buskerone","html_url":"https://github.com/buskerone","followers_url":"https://api.github.com/users/buskerone/followers","following_url":"https://api.github.com/users/buskerone/following{/other_user}","gists_url":"https://api.github.com/users/buskerone/gists{/gist_id}","starred_url":"https://api.github.com/users/buskerone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/buskerone/subscriptions","organizations_url":"https://api.github.com/users/buskerone/orgs","repos_url":"https://api.github.com/users/buskerone/repos","events_url":"https://api.github.com/users/buskerone/events{/privacy}","received_events_url":"https://api.github.com/users/buskerone/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-03-05T13:12:54Z","updated_at":"2018-03-05T13:20:47Z","closed_at":null,"author_association":"NONE","body":"<!--\r\n*****************************************************************\r\n* WARNING:  If you ignore this template, so too will your issue\r\n*****************************************************************\r\n-->\r\n\r\n<!--\r\n  Provide a general summary of the issue in the Title above \r\n-->\r\n## Your Environment\r\n* Plugin version: 2.11.0\r\n* Platform: iOS \r\n* OS version: 11.2.5\r\n* Device manufacturer / model: iPhone 6s / NKQN2LL/A\r\n* React Native version (`react-native -v`): 0.50.3\r\n* Plugin config: DEMO APP => Advanced mode, 200m geofence, notify exit ON, notify exit ON, notify Dwell ON and loitering delay 120.000 ms.\r\n\r\n## Expected Behavior\r\n<!--- Tell us what should happen -->\r\nThe event-listener **geofence** should be always being called when user enters or leaves the geofence. \r\ne.g `BackgroundGeolocation.on('geofence', this.geofenceChanges))`\r\n\r\n## Actual Behavior\r\n<!--- Tell us what happens instead -->\r\nI'm having issues with the event-listener **goefence** that is not always being called. Here you can see some data. I used the demo app for testing it. The problem is that there was only one event being triggered (user enters home), no exit event triggered.\r\n![screen shot 2018-03-05 at 1 53 57 pm](https://user-images.githubusercontent.com/2034112/36976143-dda70d78-207c-11e8-9258-7795915571c8.png)\r\n![screen shot 2018-03-05 at 1 54 28 pm](https://user-images.githubusercontent.com/2034112/36976147-e07976bc-207c-11e8-8647-470f9dc42605.png)\r\n**MAP** \r\n![screen shot 2018-03-05 at 1 54 50 pm](https://user-images.githubusercontent.com/2034112/36976171-ecc8812e-207c-11e8-9c9c-3bc90cac5ece.png) \r\n\r\n## Steps to Reproduce\r\n<!--- reproduce this issue; include code to reproduce, if relevant -->\r\n1. Clone the demo app, install it in an iPhone, configure it, run it.\r\n2. Use advance mode.\r\n3. Create a new geofence near your actual position with 200m radius, notify on entry ON, notify on Exit ON, notify on Dwell ON, and loitering delay 120.000 ms.\r\n4. Try to leave the geofence, after 30 min go back (IDK if this is important), then go back and enter to your geofence.\r\n\r\n## Context\r\n<!--- What were you trying to do? -->\r\nI want to catch whenever user enters or leaves the geofence.\r\n\r\n## Debug logs\r\n<!-- include iOS / Android logs\r\n- ios XCode logs, \r\n- use #getLog #emailLog methods (@see docs)\r\n- Android: $ adb logcat\r\n-->\r\n"},"comment":{"url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/comments/370416545","html_url":"https://github.com/transistorsoft/react-native-background-geolocation/issues/423#issuecomment-370416545","issue_url":"https://api.github.com/repos/transistorsoft/react-native-background-geolocation/issues/423","id":370416545,"user":{"login":"ataomega","id":16841537,"avatar_url":"https://avatars3.githubusercontent.com/u/16841537?v=4","gravatar_id":"","url":"https://api.github.com/users/ataomega","html_url":"https://github.com/ataomega","followers_url":"https://api.github.com/users/ataomega/followers","following_url":"https://api.github.com/users/ataomega/following{/other_user}","gists_url":"https://api.github.com/users/ataomega/gists{/gist_id}","starred_url":"https://api.github.com/users/ataomega/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ataomega/subscriptions","organizations_url":"https://api.github.com/users/ataomega/orgs","repos_url":"https://api.github.com/users/ataomega/repos","events_url":"https://api.github.com/users/ataomega/events{/privacy}","received_events_url":"https://api.github.com/users/ataomega/received_events","type":"User","site_admin":false},"created_at":"2018-03-05T13:20:47Z","updated_at":"2018-03-05T13:20:47Z","author_association":"NONE","body":"I have the same problem. it's not really reliable. even though user Enters / Exits the Geofence, sometimes the event is triggered."}}
{"actor":{"display_login":"ataomega"}}