02-16-2015 10:37
02-16-2015 10:37
Hi,
Was trying to set up notifications for food and activity updates. Believe I have set up the subscription correctly (for user 2WNFDP), but don't seem to be receiving any notifications. Suggestions on what we may need to look into, would be appreciated.
Thanks.
Answered! Go to the Best Answer.
02-17-2015 08:53
02-17-2015 08:53
I checked your subscriber - it seems it does not have a valid endpoint. It is not routable from fitbit servers.
I've sent you private message where I was trying to ping your server.
02-19-2015 13:53
02-19-2015 13:53
Any ip that is routable/accessible from internet should work for you.
Just google [ping online] and you'll see bunch of online services that will be able to ping by provided ip. If the ip you provided is pingable then you should bo good to go.
02-16-2015 10:39
02-16-2015 10:39
Try calling https://api.fitbit.com/1/user/-/apiSubscriptions.json API endpoint and see that you actually had subscribedto this user.
02-16-2015 11:36
02-16-2015 11:36
This is the response I received -
{"Status Code":"HTTP/1.1 200 OK"}
{"name":"fitbit","data":{"apiSubscriptions":[{"collectionType":"foods","ownerId":"2WNFDP","ownerType":"user","subscriberId":"100","subscriptionId":"100-foods"},{"collectionType":"activities","ownerId":"2WNFDP","ownerType":"user","subscriberId":"100","subscriptionId":"100-activities"}]}}
02-17-2015 08:53
02-17-2015 08:53
I checked your subscriber - it seems it does not have a valid endpoint. It is not routable from fitbit servers.
I've sent you private message where I was trying to ping your server.
02-19-2015 09:56
02-19-2015 09:56
Thanks for looking into it. Apparently, the server we are using is not accessible to the external world. However, our SysAdmin indicated that if we know which IPs will be connecting to us, then they could specifically enable access for those. Is that something you might be able to provide ?
02-19-2015 13:53
02-19-2015 13:53
Any ip that is routable/accessible from internet should work for you.
Just google [ping online] and you'll see bunch of online services that will be able to ping by provided ip. If the ip you provided is pingable then you should bo good to go.
02-19-2015 15:37
02-19-2015 15:37
The ip we are using to receive notifications from fitbit is not accessible to the external world. It is only accessible on the corporate VPN. Our requirement is to use that specific ip. Our SysAdmin cannot make it publicly accessible, but have told us that if we know the originating ip for fitbit notifications, they can make our receiving ip accessible to the fitbit ip.
02-19-2015 15:59
02-19-2015 15:59
It is required to have publicly accessible ip. Othjerwise you won't be able to receive push notifications from Fitbit.
We don't provide originating ip addresses because they are subject to change.