1
votes

Am attempting to add push notifications to an application that I have created. I followed the apple guide and am able to register the device for post notifications receiving a devicetoken value from APNS. The trouble occurs when I attempt to send data to the APNS to send, I always have my connection refused.

The only thing that i have done that is non standard is that the private key for the push notification certificate was created by a non-team agent (but through the Team agents account). Does anyone know if the team agent has to generate the private key for the push notification?

2
Are you using development or ad hoc prov. profile?Robert Childan

2 Answers

2
votes

If you are using Ad Hoc prov. profile, don't use sandbox apns, use the production server.

Both team agents and admins should have their private keys on their machines, they should be able to create the necessary certificates.

0
votes

Is there a reason that you want to setup your own push notification server? You can just use Urbanairship which provides free push notification services.

If you still need to set up your own server, info on generating your certificates can be found here. Make sure that you're connecting to the right push server on Apple's side. There are different server's for debugging and production purposes.