Skip to content

HttpEvent

HTTP response payload delivered to BackgroundGeolocation.onHttp.

The SDK fires this event after every upload attempt — whether the request succeeded or failed. Use it to inspect the server response, handle errors, or trigger follow-up logic in your app.


Members

responseText

Raw response body returned by the server.

Parse this string to extract server-side data, error messages, or remote-control commands embedded in the response.

status

HTTP status code returned by the server (e.g. 200, 201, 404, 500).

success

true when the server returned a 2xx status code.