Forum Posts

Issues with the companion

I am trying to get the communcation between a clockface and companion to work. Currently it works in the OS simulator but when it is on a device and mobile via the private link in Fitbit Gallery App Manager, it doesn't work.  Ill breakdown what i do ...

Resolved! Websockets with Companion and External Systems

 The docs are missing examples on using the websockets api on the companion.  Is it possible to have a websocket between the companion and an external server? I want to do something similar to the Leaderboard app where you can cheer/taunt a friend.  ...

Companion to fetch basic authorization with base64 encode

I would like to use companion fetch to 3rd party REST API with Basic Authorization to get token response, which it need base64 to encode client_id : password, so How can i use like a base64.encode(client_id : password) in companion? code as bellows:-...

Seksit by Base Runner
  • 648 Views
  • 0 replies
  • 0 votes

Issue with HTTP Basic Auth and fetch()

I am having trouble using the fetch API in the companion app to request from a server with HTTP Basic authn. if(s.user) { const auth = btoa(s.user + ':' + s.pass); headers['Authorization'] = `Basic ${auth}`; } headers['Accept'] = 'application/jso...

jtickle by Jogger
  • 5060 Views
  • 7 replies
  • 1 votes

Resolved! Import dropbox-sdk to companion

Hello everyone, i try to create an app which uses dropbox (my setup is vscode + cli). Therefore i want to use the dropbox sdk in the companion-part. I have install the npm-package successfully and import the dropbox-object like:import { Dropbox } fro...

Flodo by Jogger
  • 924 Views
  • 2 replies
  • 1 votes

Companion App Background Picture

Hi - I'm pretty new to this (something you're probably tired of reading)  I'm trying to just get this set up so the Companion App can change the background picture.  My code is very similar to that of the the demo I seen but I still cannot seem to ge...

JLHedge by Jogger
  • 1046 Views
  • 5 replies
  • 0 votes

Resolved! Phone does not show sideloaded apps

Im unable to see any sideloaded apps on my phones when looking at the developer menu while i have two apps ive sideloaded through fitbit studio. This is now getting sad since i can't uninstall the apps anymore.  I also don't see the companion app sta...

Resolved! Post data: Fetch waits until data is transferred?

Hey everyone, Posting data using the Fetch API in the companion app requires an internet connectionHowever, what happens with the data when such internet connection is not provided? Does the Fetch API buffer all the post requests until a stable conne...

bsteenwi by Recovery Runner
  • 779 Views
  • 4 replies
  • 1 votes

Local storage companion app (smartphone folder)

Since it is now possible to transfer files from the device (Ionic) to the companion app (smartphone), I was wondering where this data is stored. Is it possible to store the data in an accessible folder on the smartphone without setting up a server?  

STEP___ by Jogger
  • 709 Views
  • 1 replies
  • 0 votes

Updating settings when app is closed

Hello all, I am currently having an issue where if the user updates the settings while the app is not open it does not get persisted to the app. This is my companion code.  It does call sendSettings, but I get the "No peerSocket connection".  What is...

aesdev421 by Recovery Runner
  • 980 Views
  • 3 replies
  • 2 votes

Resolved! Can companion app have UI?

Hello there, 1) Can we design companion app UI? How to do that? Documentation link would help.2) Can we develop multiple screens with navigation drawer, or multiple tabs? Thanks,MP

Resolved! Ionic Companion connection

I'm trying to do an app that connects to a REST service.  I'm starting from the BART sample but I think I'm missing something to make it work.  I am able to deploy to the Ionic and when I am doing UI only stuff it works fine, but I'm trying to add th...

SkipFire by Base Runner
  • 1694 Views
  • 4 replies
  • 2 votes

Resolved! Accessing language on companion app

 Hi,I have a problem with the companion part of my clock face. When I want to access the language via the locale import then I just get an "Uncaught ReferenceError: language is not defined".  Here's my code:import { locale } from "user-settings"; //....

Resolved! Communicating with a native phone app

What are the options for transferring data between a native phone app and a FitBit app? Must we first transfer data between the native phone app and the companion app via the Internet? I hope not, because this means the companion app would have to co...

jtlapp by Base Runner
  • 1840 Views
  • 7 replies
  • 6 votes

ATS and Fetch

If I understood correctly, I was told that a change was being made that would allow iOS ATS to bypassed for companion fetch() calls in the event that you were communicating with an intranet device (in my case, via an REST HTTP API) -- with that being...

Dan72521 by Recovery Runner
  • 781 Views
  • 0 replies
  • 0 votes