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

To find sent file.

When do I send a file from watch to the smartphone, where can I find it? 

I followed this example and I don't know to access to app.txt.

import { outbox } from "file-transfer";

outbox
.enqueueFile("app.txt")
.then((ft) => {
console.log(`Transfer of $‌{ft.name} successfully queued.`);
})
.catch((error) => {
console.log(`Failed to schedule transfer: $‌{error}`);
})

Best Answer
0 Votes
2 REPLIES 2

The contents of the file will be available in your companion app. However, the file will not be visible to other apps (including file managers). If you need to get the file outside of the Fitbit system, you need to use fetch() or WebSockets with a server.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Mmm... What I want to do is that the user can choose a .txt file browsing in his internal files and send it to the Fitbit device... Is it possible to do this?

Best Answer
0 Votes