I would like to know if I generate my apns certificate after the app is published, I have to publish a new version.
The app in case already has the code required to receive push notification.
I would like to know if I generate my apns certificate after the app is published, I have to publish a new version.
The app in case already has the code required to receive push notification.
To send a notification through the APNS you need besides configuring the certificate, questioning in the application if the user wants to receive notifications and if so ... store the devicetoken in your web bank for later with some script (php, asp .net, etc.) use the certificate and this token to make a call to Apple servers to send the notification to the user.
Sorting the steps:
Generate Provisioning Portal Certificate
Save the script on your machine and convert it to p12 or pem (in the tutorials below each one uses it)
Send this certificate and the script to send notifications to your web server that will run this notification routine.
In the app you should configure in the appdelegate to ask if the user wants to receive the notification and if so save the devicetoken in your web bank to use with the web routine.
Answering your question ... the only thing that depends on whether or not you need to upload a new version is if you are already questioning the user about the notification and saving the devicetoken in your bank. If this is ok, you do not need to resend it, just convert the certificate, save it to your server and create the send routine.
Below 2 tutorials, one for case use ASP.NET and one for PHP. They are very complete, describing since the creation of the certificate the creation of the script to send the notifications.
Asp.net - link
PHP - link
Good luck there!
If someone has the same problem, the resolution is simple. Just create another certificate request and generate a new push certificate. You will not need to republish the app. Just change the certificate on your push push system.