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.
Settings API
chevron down
 

Settings API

Variable: settingsStorage

Type: LiveStorage

The Settings API provides LiveStorage that represents the companion app settings.

The settings values can be read and written by the companion application as well as the companion's settings view. Changes from the settings view will trigger events to be emitted in the companion application, and changes from the companion application will trigger events to be emitted in the settings view.

import { settingsStorage } from "settings";
settingsStorage.setItem("myKey", "myValue");
console.log(settingsStorage.getItem("myKey"));