Push notification not working for the production environment
- by Marcelo
I have spent a whole day on this already but still didn't go anywhere.
When I run my app in the development mode, I can get the push messages I send to myself thru PushMeBaby without a problem. However, when I try to test it in the production environment, I cannot get any push. I re-generated all the certificates and provisioning profiles, used the aps_production_identity.cer as the certificate for push, changed the ssl to gateway.push.apple.com, and did a release build for the app, but still couldn't get it to work. I found that in PushMeBaby, the line
result = SSLHandshake(context);
returns error -9844. Does it mean that something is wrong with the aps_production_identity.cer file?
This is driving me nuts, can somebody offer a little help?
Much appreciated!!!