-
Notifications
You must be signed in to change notification settings - Fork 215
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get query and get data from FeebackService #48
Comments
when the connection is done to the feedback service, you'll receive those tokens, expired tokens, and you are responsible to remove them from your database (if you consider the token is not valid anymore). The callback where you'll receive this is described here: https://github.com/inaka/apns4erl#feedback-channel-and-getting-errors
|
Clarifications needed please: There are two ways we can get feedback
Best Regards, |
Of course not. If you see the link above, you realize there're 2 callbacks. I was referring only to the second one, because you was asking about that, but you can implement both to handle the different incoming messages. |
I apologize but after looking at the link only, I got confused. How many total callbacks will be implemented - Two or Three
If two in total need to be implemented, then what will happen for send_message(DELETE_SUBSCR) call when Feedback Connection is NOT there If three in total need to be implemented, my confusion is how do I provide reference to the third callback function. Here we only give reference to two callback functions, one of which is for ERRORS apns:connect( I think my confusion comes from that I assume for send_message(DELETE_SUBSCR) call, Feedback (different from error) will be sent right away by Apple APNS to apns4erl. But I think the behavior would be that feedback of expired tokens token will only come when feedback connection is up next time. Is that the case? |
yes, is that. |
Thank you very much for helping me out!!! |
In Apple APNS "The Feedback Service" doc section, this is mentioned:
Query the feedback service daily to get the list of device tokens. Use the timestamp to verify that the device tokens haven’t been reregistered since the feedback entry was generated. For each device that has not been reregistered, stop sending notifications.
There is a feedback connection. But how do I get data and process it? Is there an example?
Please provide pointers!
The text was updated successfully, but these errors were encountered: