Support for the legacy Fitbit Web API ends on September 30, 2026
Important: Support for the legacy Fitbit Web API ends on September 30, 2026. After this date the API will continue to operate, but Google will no longer fix bugs or provide API support. On October 30, 2026, the Fitbit Web API will be turned off and will no longer function or sync data to or from Fitbit users. To continue accessing data for your users after this date, migrate to the Google Health API.
Location-change API
chevron down
 

Location-change API

Interface: Companion

The Companion interface provides information about the running companion application, access to permissions, environment information and oAuth access tokens.

Properties

monitorSignificantLocationChanges

boolean

Flag that indicates whether the application would like to be woken up upon significant location changes or not.

An application should set it to true to be woken up, or false to ignore significant location changes.

When an application is woken up by a significant location change, the launchReasons locationChanged property will be set to the GPS Position that triggered the waking up.

onsignificantlocationchange

((this: Companion, event: SignificantLocationChangeEvent) => any) or undefined

Event handler invoked when a significant location change occurs while the application is running and has indicated that it wants to monitor significant location changes.

Interface: SignificantLocationChangeEvent

Properties

position

Position