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

we do not receive oxygen saturation or breathing rate notifications?

ANSWERED

We are in the process of developing our first data collector. I am the "test user" . I have authorized fitbit to share data with our test server. We only receive notification events for activities and sleep. When I registered I clicked on Allow All

 

To test each morning I manually force the fitbit app on my iPhone to sync, then check the log files

 

I assumed that when ever data became available for an authorized scope fitbit would send us a notification event JSON with key "collectionType" set to the scope associated with the new data.

 

as a test any time we receive an 'activities' notification, I call the SpO2 and BreatingRate api and am able to get data. Clearly this is not going to work if the user has not authorized 'oxygen saturation' or 'breathing rate' scopes

 

I have not fully implemented  apiSubscriptions. this is how I am currently forming the url

https://api.fitbit.com/1/user/xxxx/apiSubscriptions/xxxx-SubID-TODO.json 

 

Any suggestions what my bug might be?

 

Kind regards

 

Andy

 

Screen Shot 2022-06-28 at 4.32.45 PM.png

Best Answer
1 BEST ANSWER

Accepted Solutions

Hi @aedwip 

 

Breathing rate (BR), SpO2 and HRV do not support Subscription notifications (webhooks).  BR, SpO2 and HRV are recorded during periods of sleep, not activity.   If your application tracks sleep, then you can use the sleep notification arrival time to estimate when theBR, SpO2 and HRV data will be available.  See the "Additional Information" section in the appropriate endpoint documentation.    If you are not collecting sleep data, then I would recommend querying theBR, SpO2 and HRV data once or twice a day to see if data is available (e.g. 12 noon and midnight).   

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

View best answer in original post

Best Answer
0 Votes
5 REPLIES 5

Hi @aedwip 

 

Breathing rate (BR), SpO2 and HRV do not support Subscription notifications (webhooks).  BR, SpO2 and HRV are recorded during periods of sleep, not activity.   If your application tracks sleep, then you can use the sleep notification arrival time to estimate when theBR, SpO2 and HRV data will be available.  See the "Additional Information" section in the appropriate endpoint documentation.    If you are not collecting sleep data, then I would recommend querying theBR, SpO2 and HRV data once or twice a day to see if data is available (e.g. 12 noon and midnight).   

 

Gordon

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Thanks Gordon

Best Answer
0 Votes

Hi Gordan

 

is there a list of which scopes have Subscription notifications (webhooks). I hard to  go through all the documentation

 

Kind regards

 

Andy

Best Answer
0 Votes

The scopes are documented several places where we reference subscriptions.   See if the Create Subscription endpoint page clarifies this for you.

Gordon Crenshaw
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google
Best Answer
0 Votes

Thank you

Best Answer
0 Votes