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

Body Presence API doesn't work when running from CLI?

ANSWERED

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 

BodyPresenceSensor object.
 
Can anyone reproduce this or is it just my case?

 

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Try 'npm install' or 'npm rebuild' to make sure that the dependencies are up-to-date.

Peter McLennan
Gondwana Software

View best answer in original post

Best Answer
0 Votes
2 REPLIES 2

Try 'npm install' or 'npm rebuild' to make sure that the dependencies are up-to-date.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Running npm install again did the trick. Thanks

Best Answer
0 Votes