09-10-2019 09:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-10-2019 09:19
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi,
I can run the sensors app (from a template) online in studio.fitbit with no problem on the simulator (running on Win7), the Body Presence API is working.
The same app, when exported and built in VSCode using CLI: the Body Presence API doesn't work.
Using
"dependencies": {
"@fitbit/sdk": "^3.1.2",
"@fitbit/sdk-cli": "^1.6.3"
}
I can toggle the On-wrist switch in the simulator, but this doesn't trigger the 'reading' event on the
Answered! Go to the Best Answer.

Accepted Solutions
09-10-2019 13:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


09-10-2019 13:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Try 'npm install' or 'npm rebuild' to make sure that the dependencies are up-to-date.
Gondwana Software

09-10-2019 13:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


09-10-2019 13:40
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Try 'npm install' or 'npm rebuild' to make sure that the dependencies are up-to-date.
Gondwana Software

09-11-2019 09:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

09-11-2019 09:45
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Running npm install again did the trick. Thanks

