Not receiving push notification while using distribution adhoc provisioning profile - ios

I am getting push notification while using development provisioning profile.
when i switch to distribution provisioning profile i did not get push notification.
my app id is same for both development and distribution profiles.
I created separate apns certificates for both development and distribution, but i am not getting push notification.
why it happened like this.
Please give your suggestions to find out the solution for this problem.

If you are using the same app id for development and distribution mode.
Then use the same .CSR file to generate production certificate and
Use the production certificate and .p12 file generated from that .CSR file to make .pem file.
For more information you can follow this tutorial, where you can test if you have made a valid .pem file.
hope this will help you.

I was also facing the same issue and tried different approaches from net.But no luck. Because the solution may vary from person to person.
Try different approaches.
This approach solved my problem:
While creating Production SSL certificate, do not change the name "aps_production.cer".
And before creating Development related certificates, first create certificates(SSL,provisioning,p12) for only production.
And also use the same ".certSigningRequest" file for both development and production. No need to create two files.
It really worked for me after trying different approaches. Give it a try.

Kindly refer below links:
ios-push-notifications
apple-push-notification-services-in-ios-6-tutorial
These links may help you

Related

push notification working in development profile but issue in distribution

I have create two diffrent App id for development and distribution profile but facing an issue for get notification for distribution profile but its work on development profile. anyone give me check .pem file correct or not
I had issues with PEMĀ“s without pass. Create them with a pass and try again.
If you have access to your server log, yo can check APNS server response, sometimes it gave clues on what is going on.
Also check if your devicesĀ“ tokens are correctly stored in server.
You need to check the following scenarios and execute.
In the firewalls need to check the 2195, 2196 ports and also check gateway.sandbox.push.apple.com, gateway.push.apple.com
Sign your application using distribution profiles and run the application in distribution mode. Make sure if you are running the application using distribution mode then in server side also should use distribution PEM files. I believe you are made the mistake in this scenario.

APN works in development not in distribution

We have an iPhone app that uses APN, the testing was perfect on sandbox, now the problem we are seeing is that APN is not reaching the phone on production, is this a known issue on the iPhone? Our app was just approved two days ago.
We checked everything mentioned here,
I understand this question is very hard to answer and I guess what I'm looking for is any hints.
This is what I made sure of:
I am using different APN token for production than development
The provisioning profile has Push Notifications enabled
Apple APN service responds successfully without and don't report any issue.
Certificates seems to be fine. And when I unzip the ipa I see aps-environment refers to production in the distribution ipa.
Downloaded the Store ipa and unpacked it, yet to find that it also has the aps-environment set to production.
UPDATE:
I removed all the certificates and provisioning profiles and created a new Production/Distribution certificate with Push Notification support.
Now, when I installed the store version, the APN didn't work still. However, I used the latest Ad-Hoc built I have locally and the APN is working fine. I decided to replace the Ad-Hoc with the Store version, and behold, the APN started to work. I am not sure what's the issue, I'll have to check on other phones to see if it really works. Have anyone had similar scenario?
Old question, but I had the same troubles.
Just found this link: iPhone iOS push notifications apns on production not sending
For production you need a different URL to push your notifications:
ssl://gateway.sandbox.push.apple.com:2195 Development
ssl://gateway.push.apple.com:2195 Production
This fixed it for me.

"No Certificates are available" when adding iOS provisioning profile for Parse Push Notifications

I'm following this tutorial to set up push notifications for my iOS app, using Parse. When I get to part 2, which involves creating a new Provisioning Profile, I get to step 6, and see this:
When I look at my certificates however, I see that there is in fact one there:
I've tried following other stackoverflow posts that address this issue, and it doesn't seem to fix my problem, perhaps because the layout for the Appe dev website seems to have changed a bit. Why aren't I able to create a provisioning profile to set up Parse Push Notifications?
The certificate you created is intended to be uploaded to the Parse website, in the settings section of your app. You need to create a separate certificate to go with your provisioning profile. Create a new certificate, and select either iOS App Development, or App Store certificate, depending on what stage you are at. I'm assuming it's Development in this case. You don't need to attach the Push certificate to your provisioning profile.

APNS Production Certificate Issue

I am having trouble creating a valid production .pem file for my iOS app's push notifications. The development version functions perfect, however I suspect the problem lies with my keychain access attempting to pair a development private key with the production certificate. Could someone verify either way on this? If so, where would I find a distribution private key?
I've followed pretty much every tutorial and post I could find on here pertaining to APNS production certificate generation, however I've been having the strangest results.
I've attached a picture of my keychain access where the certs are stored. If "this" looks right, and it should in fact say "Developer" rather than Distribution, Production, etc... I'll add additional information, just point me in the right direction.
Thank you.
Your private key is the same both for Development Certificates and for Distribution certificates.
The Main Issue is to check that the APNS Certificate is Valid and is Signed with your private key. Once you verify this you shouldn't have a problem generating your .PEM files You can follow this response for instructions:
Creating .pem file for APNS?
Hope this helps ;-)

Do i need to create one more new SSL pushnotification certification for new version of app?

I have an application already running on apple store, and this application has the feature of getting push notification. I am going to release a new version.
For this new version, do i have to create one more new SSL pushnotification certificate and a p12 file or old ssl and p12 used for old version is good enough to make it work?
Is there any changes I need to do or just increasing version number of the app and archiving will be good to go?
As i am uploading new version first time, I am not pretty sure about the step need to be followed. So it would be great if anyone can give me good link to achieve this.
Thanks in advance.
As far as my knowledge no need to create the new SSL certificates if you are using the same AppId .
The provisioning profile only cares about your app id and your certificate. Your certificate only cares about your identification. There is nothing related to to your app version. So there is no certificate and provisioning profile issues to worry about.

Resources