Confused with apple certificate to publish app and to add push notification - ios

I want to publish an app for the store (ios), this app should have push notification installed, i am a bit lost with setting the push notification from ios developer panel.
Here are my steps :
I create App Id with push notification enabled
When done, i edit it and add certificate (push certificate)
i create provisioning profile, with app id
Finally i have two certificates : Push certificate and Production certificate
I installed production certificate, provisioning profile to keychain, i downloaded push certificate and double click on it to install to keychain.
I build my app, test push and nothing happens, i get error ( no apns-environnement installed) WHYYYYYYYY?????
Please help me, i spend whole day just for it.
I want a step by step help to create production certificate + push certificate, and how to create provisioning profile for both?
Note : for mobile framework i use titanium, and for push : pushwoosh.
Thanks for your help.

Step-by-step tutorial:
https://www.raywenderlich.com/123862/push-notifications-tutorial
Check it :)

Related

renew expire certificates then can't receive push notification

I am new to iOS develop this is first time for me to handle certificate which has been expired. After I renew certificate and replace it to server, I am not receiving push notification. I may did some mistake. Please correct me.
Below are the steps i followed:
step1-- Recreate push notification, production type is "Apple Push Services" I know apple do some change, but the development type still is "APNs ..."
If I can use new certificate for development and production environment why apple provide develop choice?
step2-- I also found the Ad Hoc certificate will expire, so I also recreate it, both development and production
step3-- Of course I recreate provisioning profiles, but when I create for development I can't distinguish which certificate is new one, so I revoked the old one.
step4-- Install new certificates and provisioning profile in my mac, then export p12 to server.
Then I can't receive push notification, someone said the new certificate need to update program to fix it, I hope after edit the code push notification will work fine.
But how about development push notification? the development certificate type is the same but I still can't receive push notification, or it caused by renew Ad Hoc certificate ?
========== edit at 3/3 ========
Because the new type of certificate can use for development and production at the same time, so after server side update its code, I test push notification with the new type of certificate both development and production, and this time I get push notification.
Maybe because I have new type of certificate so APNs doesn't accept old type of certificate, is it possible?
Go to Keychain Access, delete all expired certificates. Regenerate your push notification certificates from Developer Center along with new provisional profile.

Unable to create p12 from aps_production created from apple developer account using push

I am developing an iOS app using intelXDK which uses push notification but i found one problem in achieving this.
Unable to create p12 from aps_production created from apple developer account using push.pusCSR issued from intelXDK,i could not add this certificate to my keychain showing some error like "The “System Roots” keychain cannot be modified."
Please help me on this to make this push notifications i am fresher to this platform
and push works now
1.created both dist and aps production cert with same csr and converted aps_production key to p12.
2.Uploaded to certificate stage in intelXDK.
3.Leave aps_production certificate tab and build the app.
it will work fine!!

Why doesn't Xcode recognize my push certificate?

I've just finished my app, and so I am now getting ready to submit. But I need to change my developer Push certificate to Ad Hoc to test it with a Production Push certificate.
I thought I had it all figured out, but when I build the app, I get the error:
"Failed to get the task for process 2023" (The number changes every time I build.)
I have created my provisioning profile, and I am able to navigate to my Project's Build Settings and set the app to use my Ad Hoc profile. However, when I attempt to set my Code Signing Identity to "Apple Production Services..." all I see is my Distribution Certificate, not the Push Certificate.
What is going wrong?
I found the problem. I actually did have everything done correctly the first time. I just didn't know that I couldn't build on my phone through Xcode using an Ad Hoc provisioning profile.
So I ended up testing it by downloading the Beta via iTunes.
First of all, when you transfer all the Development Certificates to the Production you cant build the project from Xcode.
No one see push certificate in code signing identity.
You only see Either Development certificate or Distribution certificate depending upon the provision profile you have selected. You don't have to worry to choose Push notification certificate in Xcode, coz its managed by Apple once you enabled the push Notification service to the app by enabling it with unique bundle identifier in developer account. https://developer.apple.com (Only you have to give the merged version of that APNS certificate and distribution certificate in .pem format to web developer )
For Adhoc You have to generate Ipa of your project form xcode and install in you mobile through external link like http://www.diawi.com, if you import Ipa into your device from iTunes remote push notification will not arrive.

Provisioning profile and push notification certificate

I've been given a task to (re?)enable push notification for the company iOS app and don't know where to begin.
I learned that provisioning profile contains information on which app services are enabled, so
I logged into the apple developer center and got to the Certificates,Identifiers & Profiles page, but saw that Development iOS Provisioning Profile was already enabled with Push Notification.
However in the App IDs section, it shows Push Notification as configurable with a yellow dot.
Does this mean that the push notification is no longer working?
If that is the case, would regenerating the push notification certificate fix it? or would I have to create a new provisioning profile as well?
Thanks!
I meet the same problem. I had it token care of!
You need to add iOS push certificate!
https://developer.apple.com/account/ios/certificate/certificateCreate.action
Apple Push Notification service SSL (Sandbox & Production).
Push certificate had been expired so it required creating a new push certificate. This invalidated provisioning profile with associated app id, so I had to re-generate the provisioning profile as well.
If in the App iD of your App its says Configurable then you better start by creating a new certificate, if not then try to get the exact private key of your CSR, your certificate and your pem file which you might have used earlier. It would do well to re-configure the entire thing actually, a mismatch between the private key would never allow you to receive the notifications

Push Notification Certificate

I have enable push and then created the distribution profile but not created push certificate, now i want to add push service in my app how can i do ??
if i create push certificate after uploading app on app store will this effect my live app.
i have followed following steps:
created distribution profile with push service enable.
i have not created push certificate and i have downloaded distribution certificate with push service enable flag.
uploaded app on app store (with push enable flag).
i have created pem file by my distribution profile (that is wrong one)
now my push notification is not working , i want to enable push services in my live app.
can i follow following steps for that :
create new APNS certificate for push service.
can we use this without resubmitting app to AppStore.
Or do i need to create new provisioning profile & resubmit app to appstore?
Help us....
No, You need to add a APNS distribution certificate for the App you created in your Developer account. Create push notification certificate (prod.pem) and pass to your backened.
It will work, no need to submit again.
Follow this link to create pem certificate.

Resources