How to create APNS certificates
From QuickBlox Developers (API docs, code samples, SDK)
Contents |
Creating an App ID
Each iOS applications that uses the APNs must have a unique application ID that uniquely identifies itself. In this step, you will learn how to create an App ID for push notification.
- Log in to the iPhone Developer Connection Portal
- Click on the iOS Provisioning Portal on the right of the page:
- You should see the welcome page:
- Click on the App IDs tab on the left and then click on the New App ID button:
- Enter your app name for the Description. Enter Bundle Identifier. Ensure you have created an App ID without a wildcard. Wildcard IDs cannot use the push notification service. For example, our iOS application ID looks something like com.quickblox.messagestest. Click Submit:
- You should now see the App ID that you have created:
Generating a Certificate Request
You must generate a certificate request file so that you can use it to request for a development SSL certificate later on.
- Launch the Keychain Access application in your Mac OS X:
- Select Keychain Access -> Certificate Assistant -> Request a Certificate From a Certificate Authority:
- Enter the information required and check the 'Saved to disk' option. Click Continue:
- Save the certificate request using the suggested name and click Save. Click Done in the next screen:
- The same process above applies when generating the production certificate.
Configuring an App ID for Push Notifications
Once an App ID is created, you need to configure it for push notifications.
- To configure an App ID for push notification, you need to click the 'Configure' link displayed to the right of the App ID:
- You will now see the option. Check the 'Enable for Apple Push Notification service' option and click the 'Configure' button displayed to the right of the Development Push SSL Certificate:
- A wizard will appear. Click Continue:
- Click the Choose File button to locate the Certificate Request file that you have saved earlier (Generating a Certificate Request section). Click Generate:
- Your SSL Certificate will now be generated. Click Continue:
- Click Done:
- The same process above applies when generating the production certificate.
Make APNS certificates
- Now you can download certificate:
- The SSL Certificate that you download is named aps_developer_identity.cer. Double-click on it to install it in the Keychain Access application. The SSL certificate will be used by your provider application so that it can contact the APNs to send push notifications to your applications.
- Launch Keychain Assistant from your local Mac and from the 'login' keychain, filter by the 'Certificates' category. You will see an expandable option called “Apple Development iOS Push Services”:
- Expand this option then right click on “Apple Development iOS Push Services” -> Export “Apple Development iOS Push Services ...″. Save this as apns-dev-cert.p12 file somewhere you can access it.
- The same process above applies when generating the production certificate.
Enter the password for exporting (it can be an empty):
Enter your usual admin password for your computer to confirm and finalize the export process:
Upload certificate to Admin panel
Thats all! Now you can upload APNS certificates to Messages module in QuickBlox Admin panel.
Create provision profile
- Click on the Provisioning tab on the left and then click on the New Profile button:
- Fill Profile name field, check Certificates, choose App ID, select your devices and click Submit:
- You will see Pending status on your newly created provision profile
- Just refresh page and you will see Download button. Click on it.
- Provision profile will be downloaded to your hard disk.Double click on it
- Open your application in Xcode, go to Project structure, select *.plist file and write your Bundle identifier that you type on Step 1
- Go to Project Settings, choose your Target, choose Code Signing and select your Provision Profile
- Now just run application! Thats all.
Comments
Feel free to comment on this page using the form below.
blog comments powered by Disqus




























