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

Import external module

For a app I need to do a get request and I need to use ‘https’ module, the same that I use in node.js 

Is there any way to install this module on Fitbit ?

I’m working with sdk cli and using ‘npm i https’ to install the module it appear in dependences but it can find the module when running the app 

Best Answer
0 Votes
3 REPLIES 3

I guess you're trying yo use it in the companion, right? As it is the only place that has access to Internet.

You'll have to see if that npm module is able to run inside the companion (I think it's like a webview, without the UI).

But it definitely isn't NodeJS, so don't expect to have any random module to just work here

Best Answer
0 Votes

How I can check this?

Best Answer
0 Votes

Did you figure out how to check if a module is usable in the companion?

 

Best Answer