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

Notifications

ANSWERED

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. 

Best Answer
0 Votes
2 BEST ANSWERS

Accepted Solutions

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.

Ivan Bahdanau
Senior Software Developer at Fitbit

View best answer in original post

Best Answer
0 Votes

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.

Ivan Bahdanau
Senior Software Developer at Fitbit

View best answer in original post

Best Answer
0 Votes
7 REPLIES 7

Try calling https://api.fitbit.com/1/user/-/apiSubscriptions.json API endpoint and see that you actually had subscribedto this user.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

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"}]}}

Best Answer
0 Votes

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.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

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 ?

Best Answer
0 Votes

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.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes

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.

Best Answer
0 Votes

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.

Ivan Bahdanau
Senior Software Developer at Fitbit
Best Answer
0 Votes