-
Notifications
You must be signed in to change notification settings - Fork 119
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
APNS does not return a response #73
Comments
I have the same problem. If I find a solution I´ll post it |
so in general - APNS does not response anything. It´s a black box. So nil will always be the response. My problem was that I didn´t have a matching provisioning profile and certificates. So my advice would be to check xcode and the apple developer portal out. (a good tutorial for the certificate stuff: http://quickblox.com/developers/How_to_create_APNS_certificates - Always helps me to remember these horrible steps) Hope I could help ;D |
Thanks @mklb. After doing more research into how the APNS protocol works, I began to realize how getting a response from the binary protocol would not be possible (or at least I could not find any APNS docs on getting a response). It is just fire-and-forget. I dislike services like this, and I hope that one day Apple improves the APNS API. Apple should take inspiration from Google's GCM. I eventually realized that the problem I was having with delivering push notifications in production was that I wasn't using the correct provisioning profile. There are so many steps in the complicated dance that is APNS configuration. I'm going to close this issue, as I don't think there can be a meaningful resolution. PushMeUp could return |
Is this still true? I got a response from Apple saying: "move to the http/2 protocol that gives an ack for every push." |
I am trying to write code that tracks the delivery of push notifications. The response I always get from calling
APNS.send_notification
is alwaysnil
.GCM.send_notification
gives me a response hash. With just a nil response, I have no way of knowing if the notification was delivered for APNS. In development the push notifications are delivered, still with anil
response. In production (with TestFlight, the production gateway URL, and my production pem), notifications are not delivered and the response is stillnil
. I don't know what to do if I can't verify the response fromAPNS.send_notification
.Here is the code where I am calling
APNS.send_notification
:The text was updated successfully, but these errors were encountered: