10-09-2018 10:22 - edited 10-10-2018 06:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

10-09-2018 10:22 - edited 10-10-2018 06:13
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
I wait for a ping to be received and once I receive the ping I check if I need to renew the access token. However if a user does not sync their data for a while and then syncs after their access token has expired would I still receive the ping and be able to refresh their access token or do I need to constantly refresh their token manually without waiting for a ping.
Thanks!

- Labels:
-
Subscriptions API
10-29-2018 15:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post



10-29-2018 15:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Hi @TATeam,
As long as the user has not revoked access to your application, you should still receive the subscription notifications when a user has updated their data. The refresh token should not expire. When you get a notification (ping), you should follow these steps:
- Respond to the notification within 3 seconds
- Exchange the refresh token for a new access token/refresh token pair
- Fetch the updated data
Gordon
Senior Technical Solutions Consultant
Fitbit Partner Engineering & Web API Support | Google

