01-14-2019 08:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-14-2019 08:18
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I am developing a mobile app that needs to display a user's fitbit data to them with additional data. As this is a mobile app and not a web application, I am confused about the process flow for fulfilling the OAuth 2.0 needs. On the fitbit registration screen, it is asking for a callback url, but as this is a mobile app, how would I provide a callback url or use it with my mobile app? For the subscription api process flow, would a user
1) login using the oauth 2.0 process,
2) approve the necessary permissions for my app,
3) a user activity or body metrics are measured by the fitbit device and uploaded to fitbit backend,
4) fitbit sends my app a notification that something new is available or would it just send the new data that is available?

01-14-2019 13:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-14-2019 13:59
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @dever_node1,
Maybe some mobile application developers who read the forums can provide you with some details. From what I have seen, you should be able to register a URL for your mobile app (i.e. my://) and use that URL for your callback URL (i.e. myapp://callback).
The flow you've described is correct. In step 4, Fitbit will send your application a webhook notifying you that the Fitbit user has updated their activity or body data. The notification will look something like this.
{
"collectionType": "activities",
"ownerId": "22PT4L",
"ownerType": "user",
"subscriberId": "3",
"subscriptionId": "123"
}
The updated data does not appear in the notification. Instead, you will need to execute one of the activity or body endpoints to retrieve the updated data.
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

01-14-2019 20:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

01-14-2019 20:30
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Do you still have the same rate limits?

01-17-2019 08:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



01-17-2019 08:06
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Here is the current information on our rate limits: https://dev.fitbit.com/build/reference/web-api/basics/#rate-limits
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

