Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create provisioning file for Push Notification

I want my App to support Push Notification, and I do as below:

  1. Generate CSR file
  2. Create an App ID and enable Push Notification
  3. Create Development SSL Certificate for the App ID, using CSR file created in step 1
  4. 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.

like image 947
Guan Wang Avatar asked Apr 17 '13 08:04

Guan Wang


2 Answers

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.

like image 94
Guru Avatar answered Sep 22 '22 01:09

Guru


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.

like image 44
dimuz Avatar answered Sep 19 '22 01:09

dimuz