-
Notifications
You must be signed in to change notification settings - Fork 231
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
geofenceTemplate not triggering #39
Comments
You probably have existing geofences rendered with the default template in the plugin db. Templates are never re-rendered. clear the database with |
That got it working. It also explains some other behavior I was seeing that was puzzling me. I did not realize the Thank you again for the quick reply. |
The plugin persists JSON representations of events (location, geofence) at the time the events occur. It doesn’t persist the actual event data. The Schema is essentially like this:
If you change the template, the plugin has no original data to re-render. I didn’t want to waste resources rendering the data for each http request. The JSON is rendered just once. |
Good lookin' out. |
Your Environment
flutter doctor
):Expected Behavior
geofenceTemplate
should be used when sending http request to server.Actual Behavior
The regular http request is sent to the server. See server log below.
Context
Send a custom http request. It works fine for
locationTemplate
. I even used the same template and remove most of the fields forgeofenceTemplate
, however it seems to not be used.Please note that the
onGeofence
even fires as expected. Plugin sees geofences and responds to them. Only missing piece is the use ofgeofenceTemplate
.Debug logs
This is logged on the server:
The text was updated successfully, but these errors were encountered: