SDK Development
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Forum Posts

Fitbit dev tools are moving to Google Accounts

Hey Fitbit developers, Important update: To ensure you can continue to use dev.fitbit.com and keep your third-party apps for Fitbit devices running smoothly, you’ll need to transition your login to a Google Account. If you don’t make the move, you’ll...

SDK Forum FAQs - README

TABLE OF CONTENTS:   README (general info, API posting guidelines)Fitbit Platform Terms of Service This board is for the discussion of Fitbit's SDK. Here, you can ask questions and get direct responses from in-house developers and fellow third-party ...

JonFitbit by Fitbit Developer
  • 54134 Views
  • 0 replies
  • 10 kudos

Join the Unofficial Fitbit Discord Chat Server

Hello, I've setup an unofficial Fitbit Discord chat server as a place for everyone to discuss all things Fitbit development related. Please feel free to join us at https://discord.gg/4ujeheG Look forward to hearing everyone's ideas and helping each o...

NiVZ by Recovery Runner
  • 56221 Views
  • 14 replies
  • 31 kudos

On watch Alarms API

The Get Alarms documentation states that for smart watches it cannot be used and that the watch has its own alarms. Is there an API or way to interrogate or set the on watch alarms? 

Guy_ by Space Racer
  • 482 Views
  • 1 replies
  • 2 kudos

How to detect back button in a clock face?

document.onkeypress works in an App but doesn't get triggered for a Clock face. Is there something special to do for a Clock face or an alternative way of detecting a back button press? 

Guy_ by Space Racer
  • 471 Views
  • 1 replies
  • 1 kudos

Token download error

Hello, This is Graduate school of Public Health lab in YONSEI University. we have some problems to use fitbit homepage about API. last week, we can download token and user ID but this week can't download it. we read a menual about API. They said "man...

giguphs by Jogger
  • 338 Views
  • 1 replies
  • 0 kudos

Resolved! messaging socket randomly not open

Is there some documentation I'm missing or something. I used the example code for settings using a companion and messaging. I've noticed over the last few months that users complain of settings not working correctly. I've also noticed when running my...

Cannot update screenshot in gam.fitbit.com

I am trying to update screenshot for one for my clock face.I removed two existing screenshot and added two new ones.When I hit save button, it shows a spinner but then there's no success or failure message. When I refresh the page, it shows old scree...

Resolved! Exporting Custom App data - Companion app

I plan to create an application that will be calculating Immediate HRV. What I want to know is how I can export the data I will be gathering on the watch, to the companion app in an easily viewable format. (I would want it to be easily viewable on th...

Resolved! Will there be an API for Charge 5

Similar to the other Fitbits, I would love to be able to write some apps specific to my goals with Charge 5. Is there an sdk for writing charge 5 apps? Otherwise, is it possible to access the data via an android app?

iceddante by Recovery Runner
  • 1351 Views
  • 1 replies
  • 2 kudos

Weather API with SDK 4.3 issue

I see several successful implementations of the weather API with SDK 4.3. However, all my attempts to use the API result in: "TypeError: Attempted to assign to readonly property." When I used the CLI instead I get "[error][app] weather is imported by...

Resolved! App to verify if user is asleep

Hi all! My JS experience is close to zero and I need help for a small app:My goal is to ping the user with a vibration every X-minutes. If they don't respond for 3 pings then they are asleep. If they want pings to stop, they can just use the button.N...

Question regarding permission agreement

Hello, I am currently testing my FitBit application on several devices. My app sends sensor readings to a server, among other things.Thus, I need internet permission.I have found that some phones allow me to accept permissions through the Fitbit app ...

gatvfit by Jogger
  • 336 Views
  • 1 replies
  • 0 kudos

Resolved! Problem with the Weather API in Versa 2 - Error!

Hello dear forum,  I'm in the process of writing an app for my Versa 2, which should, for example, receive and display the weather data from the Fitbit Weather API. Because the getWeatherData function has to be in the companion folder and cannot be w...

Oin by Base Runner
  • 554 Views
  • 2 replies
  • 3 kudos

Character encoding for code challenge

I've been trying to figure out what type of character encoding is used for the Oauth. I can't seem to figure it out.In the example on https://dev.fitbit.com/build/reference/web-api/developer-guide/authorization/You start with base64UrlEncode(sha256Ha...

FytFeed by Jogger
  • 399 Views
  • 2 replies
  • 2 kudos

Resolved! Ionic not showing up as device in Fitbit Studio

I want to use the Fitbit Studio to make a clockface for my Ionic. I am able to connect my phone, but my Ionic device is not showing up. I am using the same Fitbit account for studio and mobile app. My Ionic is charged above 25% and the developer brid...

Cycle through Background Pictures

Hello,    I'm a total noob at JS and CSS.  I'd like to randomly cycle 3 pictures every hour on the hour.  Can someone provide me a sample code snippet that I can study and learn? Thanks!

Ploroso by Jogger
  • 409 Views
  • 1 replies
  • 0 kudos

Resolved! Fitbit versa 2 does not have correct API

I just got a FitBit Versa 2 Version 35.70.714.I was able to connect it using development bridge. The same thing with the phone. I'm using an Iphone13 mini.When I try to run a sample app on FitBit studio, I get the the following on the consoleSideload...

Subscription API not sending notifications

Hi, I have set up subscription for my Fitbit application with OAuth clientId: 238265. The App settings page shows that the subscriber is verified. However, I receive no notifications for my user. I even deleted the subscription of my user and resubsc...

Blaug6988 by Recovery Runner
  • 541 Views
  • 0 replies
  • 0 kudos

TXIExportOption and scaling...

Hi,I am trying to send an image from companion to watch - a simple, monochrome image. (Actually a QR code.)To make it readable, I obviously want it as big as possible (with a margin around the edge) and with pixels exactly mapped (to avoid averaging ...

KPAY fitbit sdk

Hello, does anyone know the code for K pay to put in the Fitbit SDK app? I am just wondering If anyone has the code so I can use it on my clock faces. 

CubeAlgo by Recovery Runner
  • 579 Views
  • 3 replies
  • 0 kudos

Resolved! Ability to create own Clockface is really cool!

I don't know much Javascript but the instructions on the website are really pretty spot-on. I was able to figure it out and get everything working. My only problem is I am stuck with a red screen because my fitbit battery level is low and it won't le...

Mircalla by Recovery Runner
  • 606 Views
  • 4 replies
  • 1 kudos

Notifying users of new features or updates to clocks/apps

Is there a recognised way to inform existing users of Clock faces or Apps when developers make updates or add new features as to what those features or changes are? There seems to be no announcement or release process and it relies purely on the user...

Guy_ by Space Racer
  • 479 Views
  • 0 replies
  • 1 kudos

Resolved! Calculating HRV with Heart beat monitor

Has anyone  using the tools FitBit has available to calculate an immediate HRV. Not a day's average or something like that but given 10--15 seconds of Heart Rate data being able to get a reliable calculation for what the users HRV is doing. I am awar...

not able to write same text while creating clock face

Hey , I was trying to build a clock face. In that clock face I am trying to use text in Hindi language can someone tell me how can I do that ? Secondly, What if I want the text be dynamic so that user can set that while adding clock face . Any sugges...

Resolved! Line opacity not working on Fitbit Versa

Hi, I'm making a clockface for Fitbit Versa with SDK version 4.2 and running into an issue with setting opacity for a line.I have two lines - one with opacity .3 and one with opacity 1. The opacity differences between these lines is visible in the em...

onunload with Swipe right bug

When terminating an app the onunload() works as expected. But terminating an app with Swipe right the onunload() creates an error "Tried to operate on a nonexistant element." Is this a known bug, has the Swipe right destroyed the app working environm...

Guy_ by Space Racer
  • 491 Views
  • 0 replies
  • 0 kudos

OAuth 3rd party token question

Hi, I'm writing my first Fitbit app, which involves getting data from a third-party, starting with an OAuth process to gain an access token using the generic OAuth button element. After authorising the app to request data, I'm redirected back to the ...

Resolved! Storing time series sensor data in (csv or json)

Hi guys,I'm trying to store time series sensor data in a file format like (json or csv) It will probably take to much memory to store in in the device so my question isIs it possible to store the data in the companion or send it somehow to a local se...

Weather on Clock Face

I'm in the process of adding weather to my clock face, and I got it working with OpenWeatherMap. However, I'm trying to figure out how to save the values of the temperature and condition. Currently, when I open an app, or do anything to cause the clo...

How to create a range slider input

Hi, I'm trying to create a range slider input element to use for a dimmable switch input. I have seen the JSX Slider input under settings but is there anything comparable for the device app GUI?

sufinawaz by Recovery Runner
  • 1218 Views
  • 4 replies
  • 1 kudos

Dynamic Textarea and Virtual Tile List in a Scroll View

Hello,I am a beginner in writing apps for FitBit.My app should display some text which can be quite long and would require the user to scroll. I manage to do that using a Dynamic Textarea. My app should also have a Virtual Tile List to allow the user...

pll by Recovery Runner
  • 897 Views
  • 2 replies
  • 0 kudos

Resolved! Show/Hide settings element

Hi, I'm writing my first Fitbit app, and want to show or hide an element based on a value in props.settingsStorage. Background, my app will link to a third-party service using an OAuth element. I want to show the <Text> element before the account is ...

fatal Jerryscript Error: ERR_REF_COUNT_LIMIT

This error is caused by document.getElementById() executed in the long loop. Got rid of this error when cached all the references to SVG elements. That's really weird and most likely is a bug. So, what does this error mean exactly? And what sort of G...

gaperton by Tempo Runner
  • 1775 Views
  • 7 replies
  • 4 kudos