0
I wonder if in case I generate my apns Certificate after publishing the app, I have to publish a new version.
The app in case already has the necessary code to receive push notification.
0
I wonder if in case I generate my apns Certificate after publishing the app, I have to publish a new version.
The app in case already has the necessary code to receive push notification.
0
If someone has the same problem, simple resolution. Just create another certificate request and generate a new push certificate. No need to republish the app. Just change the certificate in your push sending system.
0
For you to send a notification through the APNS you need to besides configure the certificate, ask in the application if the user wants to receive notifications and if ... store the devicetoken in your web bank to later with some script (php,Asp.net, etc.) use the certificate and token to make a call to Apple Servers to send the notification to the user.
Ordering the steps:
Generate Certificate in Provisioning Portal
Save the certificate on your machine and convert to P12 or pem (in the tutorials below each one uses a way)
Send this certificate and script to send notifications to your web server that will run this notification routine.
In the app you must configure in appdelegate to ask if the user wants to receive the notification and if yes 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 whether you are already questioning the user about the notification and saving the devicetoken in your bank. If this is OK, no need to resend, just convert the certificate, save to your server and create the upload routine.
Below 2 tutorials, one for case use ASP.NET and another for PHP. Are very complete, describe since the creation of the certificate the creation of the script for sending notifications.
PHP - http://www.raywenderlich.com/32960/apple-push-notification-services-in-ios-6-tutorial-part-1
Good luck there!
Browser other questions tagged ios objective-c
You are not signed in. Login or sign up in order to post.
I didn’t understand how you have an app published to receive notifications when there was no certificate.
– Paulo Rodrigues
Resurrecting the topic, just to be clear. The app had a certificate generated on another machine by another developer. This developer gave up the app and did not pass the generated certificate keys. Soon I had to generate new certificate to run on my machine and did not know if it would affect the app in effect since I would have to generate another certificate request and etc...
– Hykaruz