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

Does Fitbit subscription still ping when an access token is expired?

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!

Best Answer
0 Votes
1 REPLY 1

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:

  1. Respond to the notification within 3 seconds
  2. Exchange the refresh token for a new access token/refresh token pair
  3. Fetch the updated data

 

 

Gordon

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