Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GeofencesChangeEvent on property: returned geofences with null extras #110

Closed
joaolh opened this issue Aug 24, 2019 · 10 comments
Closed

GeofencesChangeEvent on property: returned geofences with null extras #110

joaolh opened this issue Aug 24, 2019 · 10 comments
Labels

Comments

@joaolh
Copy link

joaolh commented Aug 24, 2019

Your Environment

  • Plugin version: 1.2.1
  • Platform: Android
  • OS version:
  • Device manufacturer / model:
  • Flutter info (flutter doctor):
  • Plugin config: geofence changes event is activated
PASTE_YOUR_CODE_HERE

Expected Behavior

returned geofence list from "on" property of GeofencesChangeEvent must have extras populated with extra information as the extras had being populated when geofences were created.

Actual Behavior

geofence has extras are null object instead of the original populated values

Steps to Reproduce

1.create geofence with extras
2.when GeofencesChangeEvent occurs observe that the extras is null object
4.note: the querying geofences using BackgroundGeolocation.geofences is however work fine, e.g. the extras are there.

Context

use the extras property of geofence to store additional data

Debug logs

Logs
PASTE_YOUR_LOGS_HERE
@christocracy
Copy link
Member

Thanks, I’ll look into it.

What are you using onGeofencesChange for?

@christocracy
Copy link
Member

Install latest from Git branch GeofencesChangeEvent-extras. Let me know if that fixes you.

dependencies:
  flutter_background_geolocation:
    git:
      url: https://github.com/transistorsoft/flutter_background_geolocation.git
      ref: GeofencesChangeEvent-extras

@christocracy
Copy link
Member

Feedback please.

@joaolh
Copy link
Author

joaolh commented Aug 26, 2019

using onGeofencesChange to keep track on geofences being currently monitored. From a bunch of geogences in the system, I wanted to know which ones are currently being monitored and which one are not.

@christocracy
Copy link
Member

@joaolh That's fine. That's what it's designed for. Some get confused, thinking this is the event to listen to for actual geofence enter / exit / dwell events.

@joaolh
Copy link
Author

joaolh commented Aug 26, 2019

1.2.1 appears to be the latest version. Does the branch GeofencesChangeEvent-extras contain anything that might be related and/or fix to the issue? I will give it a try as soon as possible.

@christocracy
Copy link
Member

Like I said above, install the branch GeofencesChangeEvent-extras and let me know if it's fixed so I can release version 1.2.2

@KarthikSCP
Copy link

I have the same issue in 1.2.2. Even after updating to latest release today. GeofencesChangeEvent is not giving the change event value it's null sometimes this happens in random fashion.

@stale
Copy link

stale bot commented Nov 5, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You may also mark this issue as a "discussion" and I will leave this open.

@stale stale bot added the stale label Nov 5, 2019
@stale
Copy link

stale bot commented Nov 12, 2019

Closing this issue after a prolonged period of inactivity. Fell free to reopen this issue, if this still affecting you.

@stale stale bot closed this as completed Nov 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants