08-09-2019 11:43
08-09-2019 11:43
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}`);
})
08-09-2019 13:32
08-09-2019 13:32
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.
08-09-2019 19:02
08-09-2019 19:02
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?