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

Subscription API didn't send notification

From the log page below, in 2014-06-22, I modifed at least 4 times in fitbit dashboard, but it didn't send out notificaitons. Is there any issue occurred which stops fitbit subscription send out notifications?

 

https://dev.fitbit.com/apps/subscriberstats/228SLL

 

The fitbit user account is :

maxxu@hengtiansoft.com

Best Answer
0 Votes
8 REPLIES 8

Seems that subscription url that you have is wrong.

Please check that you're using correct subcriiption URL.

 

I tried to request the url that you have and I've got following response : {"error":{"code":"0","message":"Not Found"}} marked as 200 == OK, which is:

1) not actually OK

2) We expect to get back 204s ftom subcription endpoints.

 

 

 

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Hi,

 

Thanks for your reply,

 

but the url must be correct, we have received 668 notifications so far using that URL. only some of them missing.

 

Are you saying if our response it not 204, or overtime, it will no longer send notifications?

 

1.
2014-06-24 09:41:19:041 +0000
200
248
1
108
2.
2014-06-23 16:11:06:011 +0000
200
295
1
108
3.
2014-06-23 01:04:21:004 +0000
200
132
1
114
4.
2014-06-23 00:57:18:057 +0000
200
146
3
340
5.
2014-06-23 00:57:18:057 +0000
200
145
1
109
6.
2014-06-22 14:26:12:026 +0000
200
398
1
108
7.
2014-06-22 12:01:26:001 +0000
200
226
1
108
8.
2014-06-21 11:03:21:003 +0000
200
190
1
108
9.
2014-06-20 21:14:25:014 +0000
200
145
1
114
10.
2014-06-20 20:56:45:056 +0000
200
185
1
114
11.
2014-06-20 20:19:52:019 +0000
200
207
1
114
12.
2014-06-20 17:55:05:055 +0000
200
441
1
114
13.
2014-06-20 08:29:31:029 +0000
200
146
1
114
Best Answer
0 Votes

And are you testing GET method? our endpoint API only accepts POST.

Best Answer
0 Votes

You still will be getting notifications and won't be disabled, however I suggest you to update your code to send  204s as your response code instead of 200s. Once you do this you'll get nice green higlhighting for the push notifications that were considered by Fitbit as good ones.

 

Related to you concern about not getting notifications try following:

1) execute https://api.fibit.com/1/user/-/apiSubscriptions.json and see if you have any subscriptions 

2) if you do have subscriptions make sure that you subscribed to the right user you're making changes to. Also make sure that you subscribed to correct event type. 

3) try update for that user via fitbit.com and see if you'll get notifications

 

if 1)-3) does nto works try to remove subscriptions to this user and add them back.

 

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

Information on when a subscriber will be disabled is available in the documentation at https://wiki.fitbit.com/display/API/Fitbit+Subscriptions+API#FitbitSubscriptionsAPI-DisabledSubscrib...

Best Answer
0 Votes

I had an issue with my end point, and received about ten 404 errors consecutively...  My endpoint is still enabled, but I'm not getting any notifications against it...

 

I've validated (using the "https://api.fitbit.com/1/user/[user-id]/apiSubscriptions/1.json endpoint) that my user is suscribed, and to the right subscription, however, for almost a fuill day I've received no notifications...

 

Also, I'm seeing updated activity (steps have increased, etc) in my user's profile...

 

PLEASE HELP!!!!!!!

Best Answer
0 Votes

 

@JeremiahFitbit, The link you shared goes behind a login for confluence.

 

I'm still having issues here.  I register a subscription for a user against my app's default (and only) subscription.  It works for a while, and then notifications completely stop.

 

I've been able to delete the subscriptions, and then re-add them, but then the same behavior occurs.

 

I've posted a few times about this, but haven't gotten an answer.  PLEASE HELP!!!!!

 

PS, Happy thanksgiving! 🙂

Best Answer
0 Votes
@SidBit wrote:

 

@JeremiahFitbit, The link you shared goes behind a login for confluence.

 


We've moved our documentation to https://dev.fitbit.com/docs.

The particular doc that Jeremiah linked to is now available at:

https://dev.fitbit.com/docs/subscriptions/#disabled-subscribers

Best Answer