-
Notifications
You must be signed in to change notification settings - Fork 16
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
When is 'event' equal to 'heartbeat' in the POST schema #257
Comments
Same problem |
You are free to attach |
We're using the extras already. My original question was mainly to understand under which conditions the event is set to heartbeat because it's in the documentation listed as a possible option. |
The docs must be wrong. |
They work only with app open, if app is closed heartbeat doesnt work |
On iOS (nobody has specified iOS vs Android), that’s correct: no heartbeat after terminate. Read api docs Config.stopOnTerminate. |
This issue is stale because it has been open for 30 days with no activity. |
This issue was closed because it has been inactive for 14 days since being marked as stale. |
In the documentation in the HTTP post schema (see https://transistorsoft.github.io/capacitor-background-geolocation/interfaces/location.html#http-post-schema) event can be set to
motionchange
,geofence
orheartbeat
.However the
onHeartbeat
function handler will not post data itself when invoked by the plugin (https://transistorsoft.github.io/capacitor-background-geolocation/classes/backgroundgeolocation.html#onheartbeat). If an update must be sent to the server thegetCurrentPosition
function must be called. Since this is invoked from javascript the event will be missing.Can anyone give details what the condition(s) are that will set
event
toheartbeat
in the posted server data?The text was updated successfully, but these errors were encountered: