-
Notifications
You must be signed in to change notification settings - Fork 24
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
Background Only Geofences in 1.8 #102
Comments
|
@christocracy I finally got time to test out updating the app to Is there anything special that changed with the newest version when setting up geofences to get it to send the http post like before? I tested it out by starting at one geofence location, walking to another, waiting for a few minutes, and then walking back to the first. Here's the
And here's the log file: |
There are no geofences firing in your logs. You will not get a geofence event sent to your end-point if no geofence events occur. |
I did not change anything in my configuration, or implementation other than updating the plugin. Is there anything special that changed with the newest version when setting up geofences to get it to send the http post like before? I tested it out by starting at one geofence location, walking to another, waiting for a few minutes, and then walking back to the first. |
It has nothing to do with HTTP. The geofences are not firing. You can see in the logs that the geofences are being created and monitored. They are not firing.
|
I understand it has nothing to do with HTTP. I should have rephrased that when I asked it again.
To answer your questions:
Here's one of the geofences: {
"identifier": "-KxsBI2uRgLXppk8ogGT",
"radius": "100",
"latitude": 41.059098,
"longitude": -83.589661,
"notifyOnEntry": true,
"notifyOnExit": true,
"notifyOnDwell": true,
"loiteringDelay": 30000,
"extras": {
"location": "-KxsBI2uRgLXppk8ogGT",
"campaign": "-KwuecyexbJW5Z5fvuuP",
"user": "wAcF2QjJJtV2PkyrP5SxxdhE2YA3"
}
} |
No.
The docs are mistaken. It should read minimum is
I'm not talking about the plugin config. I'm talking about your Android Device Settings -> Location. |
I updated it to 200. And the device is configured to use wifi for high accuracy GPS. Still no events. My issue here is that it works when I run v1.8 but not 1.90-beta.4. If I downgrade to 1.8 and go for the exact same walk, I get geofence events firing without changing any configuration on my device or the plugin. |
@christocracy I am coming back to this issue again after some time away working on other projects. I am still experiencing the issue above when running background geofences only. I do not see any geofence events firing for Android. I am still using the configuration above, but I am now using version 1.9.1 of the background-geolocation-lt plugin. With the configuration provided above I receive Here is a recent email log from my last test:
|
@christocracy Can you provide any insight as to why the geofence events aren't firing? |
Your Environment
tns info
):Expected Behavior
The plugin will start monitoring geofence events on close.
Actual Behavior
When I call
BackgroundGeolocation.startGeofences
in the androidactivitiyStoppedEvent
the app crashesSteps to Reproduce
Context
I am attempting to only monitor geofences while the app is closed or in the background. I start the geofences when the app enters background. And also in the activity created event so that it starts when android restarts the app in the background. This worked fine before I updated the plugin to 1.8 and nativescript to ^3.4.
Debug logs
The text was updated successfully, but these errors were encountered: