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 AnswerThe 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.
Best AnswerMmm... 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