Apple Push Notification - change from developer to production. What do to? - iphone

this week I will submit my App to the Appstore.
I have tested the push notification service with my developer- certificate on several devices. Everything works fine.
So what are the next steps?
Generate a Distribution Provisioning Profile and download to xcode.
Download the Production-Push-Certificate and generate a pem file.
use gateway.push.apple.com
?
Thanks a lot!
Chris

Generate your production push certificate, then generate your distribution provisioning profile. When you want to send a push notification to a production user, send the JSON payload to gateway.push.apple.com using the production certificate.

Related

How to ask customer to apply for APNS push certification (no MDM capability)

I followed instruction to generate a development APNS certificate and I am able to send the push notification successfully to my iPhone. Our application would be deployed on premise in customer environment, so I am looking for what instruction I should give customer to generate the APNS production certificate. Based on my search at this point, it is all about MDM APNS certificate generation and here is from Apple MDM web site:
1.Contact your MDM vendor to request a signed Certificate Signing Request (CSR). Your vendor will sign a CSR and deliver it to you.
2.Once you have a signed CSR from your vendor, visit identity.apple.com/pushcert and sign in with a verified Apple ID.
3.Click "Create a Certificateā€ and agree to the Terms of Use.
4.Select your signed CSR and click upload. After a moment, your certificate will be available for download.
5.This certificate can now be uploaded to your MDM server for use with the Apple Push Notification service.
However we don't want to be a MDM vendor, we just want to send push notification from server application to our iOS app which would be used by customer.
So do we have other choices? Or should we just package our production certificate with our solution to deploy in customer env? Somehow I didn't find information on internet for my case.
Since no one is answering, I am answering myself.
Based on this link Multiple Servers Connecting to APNS with same SSL certificate, we just need to distribute our production APNS certificate to customer. I guess we would need to update the production certificate on customer site when it is about to expire. By the way, it is also possible to have different production APNS certificates for different customer see link, I guess challenge would be how to manage those certificates when there are a lot.
It is highly welcome for any comments if you have experience in this area.

What i need Development or Production Push SSL Certificate in APNs?

I want to activate Apple Push notification service in my application and this application which i am building is for client, and i don't know that how many client will be further use this application or installed on how many devices, so i am little confuse that what i actually need Development or production Push SSL certificate?
Follow APNS-Development push SSL or Production push SSL?
Step by Step SetUp for pushNotification
How to Configure & Send Apple Push Notifications using PushSharp

Production push notification steps

im trying to developing an iphone app with push notification, every thing going well when i use the Development Push SSL Certificate and i received the push correctly,
BUT now i have no idea about Production Push SSL Certificate
How can i develop an app use Production Push SSL Certificate to use it for ad-Hoc ??
any idea :)

Some questions about push notificatons?

I am working with my first app for iphone and last part is push notifications. Its my first iphone app and firs time i am dealing with push notifications. In development phase everything is working fine. now i have some questions for productions phase.
Whats difference between Development push SSL certificate and
production push SSL certificate? Can i use the same certificate
which i used in development phase or do i have to buy a new
certificate?
I made an app on urban for production push notifications and used
its credentials in my source code. Is it enough or do i have to make
more changes at urban airship's app or in my source code?
I tried alot to find some kind of document or tutorial which shows
how to change development push notifications app to production push
notifications app. But unfortunately i couldn't find any. Can you
send me some tutorial or document which shows how to do that?
1- Whats difference between Development push SSL certificate and production push SSL certificate? Can i use the same certificate which i used in development phase or do i have to buy a new certificate?
Answer - There are two kind of push SSL certificates. Development and Production. Development push SSL certificate will only work if you attach your iPhone with your mac and directly compile on your device. When you use Development Push SSL certificate Apple's demo server will be used to send notifications. Whereas when you create the app file or .ipa file and install that on device you need to use production push SSL certificate. You can not mix and match these certificate.
2- I made an app on urban for production push notifications and used its credentials in my source code. Is it enough or do i have to make more changes at urban airship's app or in my source code?
Answer - Actually you just need to download production push SSL certificate from provision portal, export this certificate in .p12 file then then upload it to urbanairship. You don't need to change any code in your App.
3- I tried alot to find some kind of document or tutorial which shows how to change development push notifications app to production push notifications app. But unfortunately i couldn't find any. Can you send me some tutorial or document which shows how to do that?
Answer - follow this guide - http://urbanairship.com/docs/getting_started_ios_push.html
Edited to answer comment -
no you dont need to buy a new certificate. you can create multiple apps and their push ssl certificate from your developer account. See this image - http://urbanairship.com/docs/_images/apns-certificate.png .
Here are the instruction on how to create a push ssl certificate and export it.
1) Just create a new app and click on configure link.
2) Then click on "Enable for Apple Push Notification service ".
3) click on development or production configure certificate.
4) follow the instruction and download the push ssl certificate.
5) double click on it to install it in keychain access.
6) open keychain and locate this certificate, right click on it and select export.
7) choose a password and save the .p12 file.
8) you need to upload this file on urbanairship portal.
Note - you never need to change any code or also you dont need to put this certificate in your resource folder. This certificate needs to be send to apple server with your push notification(which urban air ship is doing).

Push Notifications working with iPhone development provisioning profile?

I have my development app installed on my iPhone with the development provisioning profile. Do push notifications work with the development provisioning profile, or only on distribution?
I'm curious because push notifications are working just fine on distribution, but not with the development app.
Thanks!
Push notification will work only if the provisioning profile contains the key aps-environment (the value is either production or development). The team provisioning profile (with the wildcard) can't be used with push notifications, therefore will not contain the aps-environment key/value entry. See Apple documentation that explains creating the necessary certificates.
Should work with the devel profile. There's a sandbox service. (See http://developer.apple.com/iphone/library/documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/CommunicatingWIthAPS/CommunicatingWIthAPS.html)