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

How to make device listen for http request from the server.

ANSWERED

Currently I'm working on fitbit application and I need the clock face to ask the person to give a feedback once a day based on a signal from the server. How to make device listen for http request from the server. 

 

Any help and hints are appreciated!

Best Answer
0 Votes
1 BEST ANSWER

Accepted Solutions

Periodically send a message from your Device to its Companion using the messaging API

https://dev.fitbit.com/build/guides/communications/messaging/

 

Then fetch() your web endpoint and check for a feedback request. If you have one, send a message from the Companion to the Device, then action it on the Device.

 

 

Alternatively, wake your Companion at specified intervals and check for feedback.

View best answer in original post

Best Answer
2 REPLIES 2

Hi @talantbekov_k

 

I've moved your post to the SDK development board, you should hopefully receive a better response to your question here. 

Community Council Member

Nathan | UK

Looking to get more sleep? Join the conversation on the Sleep better forum.

Best Answer

Periodically send a message from your Device to its Companion using the messaging API

https://dev.fitbit.com/build/guides/communications/messaging/

 

Then fetch() your web endpoint and check for a feedback request. If you have one, send a message from the Companion to the Device, then action it on the Device.

 

 

Alternatively, wake your Companion at specified intervals and check for feedback.

Best Answer