Do I need to update distribution certificate and provisioning profile right after generating and installing APNS production certificate? - iphone

I am working on one app and its uses the Apple push notification. For that there is one apple push services production certificate created by other user/previous developer. I am not able to contact my previous developer for the push certificate p12 along with its private key.
That is why I am trying to generate my own apple push production certificate from the developer site.
But my doubt is if I generate and install that new APNs Production certificate to my keychain , will it affect my existing provision profile and iOS distribution certificate(which is already installed in my keychain)?
Do I have to update them both after installing APNS production certificate ? If yes plz guide me with the procedure.

Related

Implementing APN's, get valid signing identity not found when install development profile?

For APN's i'm following raywenderlich tutorial from here
i already have developer certificate installed in xcode, when i create AppId and configure it to push notification and create certificate(SSL) it adds a development certificate under certificate section..it's Ok.when i go to create provisioning profile it shows me only one certificate to choose(not newly created APN certificate). i created profile with that certificate but whenever i go to install it, it say "valid signing identity not found".
Please note that I've installed both iOS Development and APNs Development iOS certificates in xcode. I've searched similar question on stackoverfllow but still no luck.What I'm doing wrong?
I'm not sure what you are doing wrong. But here is the general procedure:
Go to developer.apple.com and login
Go to Certificates, Identifiers and profiles
Create a certificates for iOS app development and APNS. For creating a certificate you need to upload a CSR (use Keychain Access to do this) from your Mac. Once you upload the CSR from your Mac, download the App and APNS certificates to your machine - If you don't upload the CSR from your machine, you will get a valid signing identity not found error.
Points to remember:
When creating APNS certificate, chooose the appropriate App ID. By choosing wrong ID push notifications wont work.
When creating the provisioning profile, choose the App certificate you created in the above steps.
Thats the gist, you should be able to figure out things I missed by following on screen instructions.
I got the solution private key(.p12 file) was missing in keychain.

Create provisioning file for Push Notification

I want my App to support Push Notification, and I do as below:
Generate CSR file
Create an App ID and enable Push Notification
Create Development SSL Certificate for the App ID, using CSR file created in step 1
Create Provisioning file
The problem is, in step 4, I cannot select the certificate created in step 3. Is there anything wrong in my steps?
Thanks.
No you can't select push SSL Certificate while creating provisioning profile. Just select developer Or Distribution certificate.
Upload push SSL certificate in server that provide push service...ex: parse, arban airship. Its optional.
You can't select the SSL certificate just because you don't have to.
The provisioning profile is not related to the push certificate, but to the App ID, that's where you have set your app to use the APN service.
The SSL certificate must be uploaded on your server so it can be identified as your app server when making calls to Apple. You just need to download it, open it in your keychain and then usually export it and upload it on your server.
It's quite simple, just be sure to sign your app with a development provisioning profile when you are using a development push certificate on your server (making calls to apple sandbox server), and a distribution profile when you are using a production certificate.
If you are still getting problems take a look at this guide, it's from quickblox, but the part related to the Apple portal it's the same independently form the server or the service you are using to generate notification and it's really well explained.
follow this it might help you,
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
I also followed all the tutorials mentioned above. I had the same issue with 'step 4'.
What I found out is that I cannot create a provisioning profile manually (using THE certificate). It automatically generates it for me once my Xcode 5 synchronizes with my AppId which was created by myself. So I would like to suggest that you wait a few minutes after you pressing the 'fix issue' button from the general tab. (BTW, I am new to IOS developer.)

Sandboxed APNS environment & .mobileprovision file

Anyone know the details of .mobileprovision file? I have an app which I want to point to sandbox APNS environment, I believe I need to create a .mobileprovision file for sandbox environment. Do all the devices which will use my distribution build needs to install some provision profile in order to receive the Pushes from sandbox APNS environment?
You need to have a separate development and distribution certificate for you push server as well as signing the app with different development and distribution certificates that are associated with an appID that has push notifications enabled.
Note that if you are testing (Ad Hoc) then you also need a distribution certificate specifically for ad hoc distribution (you can generate this from you apple developer site).
Finally, this guide helped me create the certificates I needed for my push server.
http://code.google.com/p/apns-php/wiki/CertificateCreation
Also, here is the apple developer page talking specifically about the different certificates required for sandbox and distribution builds for push notifications:
https://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/ProvisioningDevelopment/ProvisioningDevelopment.html

How do I renew the SSL certificate for my ios push notification provider?

A bit under a year ago, a teammember who has now left built an iphone app which is on the app store, and an ios push notification daemon which sends it notifications. Today, the daemon started spitting out SSL certificate errors - it seems the daemon's certificate has expired.
I've got the username and password of the developer account, and I've logged into the provisioning portal to create a new certificate. If I go to manage the App ID of our older apps that we no longer support, I see this:
But if I manage the App ID of the one I'm trying to renew, I see this:
Why isn't there an option for me to generate a new push SSL certificate for this app? How do I renew the push daemon's ssl certificate without it?
Will we need to rebuild and resubmit the app?
If the certificate has expired, you must generate and download the new certificate, remove older certificates, and install the new on the server.
Resubmit the app is not necessary, just install the certificate on the server, no changes happens on client apps.

Moving APNS to Production with app that is alreay in appstore

I have a application in the app store, the current Distribution certificate was issued before I configured APNS. I want to build a update that will include APNS.
My question is do I need to revoke and re-issue the Distribution certificate for APNS to work or is that just included? I know that I had to do that with the provisioning profile in order to use APNS.
You will need to download the newly configured cert, build the app using that and re-submit to the appstore :)