App with push notification submit to app store - ios

I want to submit my app which uses push notifications. Now i have a app id in provisioning portal which has push notifications enabled for PRODUCTION but not for DEVELOPMENT. Do i have to enable push notifications for DEVELOPMENT as well for submitting to app store?. Also the provisioning profile for app store is to be created in the usual way or is there something different involved?
Thanks in advance!!

No you don't have to enable Push for Development to submit in the store, only enable for Production it will do. But make sure you have used the same app id to create your Distribution Profile, and submitted to store.

#iphonic is correct you only use the development certificate for development and you use production for Ad-Hoc or App Store submissions.

Related

Development to production existing profile

I have developed an application which supports GCM push notifications through APN, but the certificates are created in development environment now i need to upload that app to the App Store.
What should I do now:
So can i directly edit and upload the new CSR
Or should i follow the whole new process by creating new app id to upload the app to App Store.
Or in some other way?
What way should I follow.
You can edit existing App ID and use same CSR you used for development.
Here is the link you can review for enabling push notification for production environment.
https://support.magplus.com/hc/en-us/articles/203808718-iOS-Creating-a-Push-Notification-Certificate
For App Store submission, you need to create App Store profile.

Create a certificate for app which is used APNS

I have a question on creating a certificate for submitting an app to the app store. In my app, i am using APNS. When creating a certificate, do i need to select only App Store and Ad Hoc or both App Store and Ad Hoc and Apple Push Notification service SSL(Production) under production section. Anyway when i am creating provisioning profile i am enabling push notifications.
For app store you can select only Apple Push Notification service SSL (Production).
You select only app Store. Add hoc distribution should use only for development phase.

Submit app with a Apple Development Certificate for Push notifications or Production Certificate?

I am about to submit my app and not sure what I should do about the certificates used for the push notifications. I am using Parse.com for my backend. Do I need to update the certificate for the database to production for when Apple review the app or do I leave it as development and do it after release?
Submit it with Development Certificate.
And When Your App Is Approved then Update it to Production Certificate.
Apple requires you to have your backend set up production ready for review, otherwise your app is likely to be rejected.
See dot 2.9

Push notification for an app already in the store

I'm fairly new and this was the first time i submitted an app.
So i have an app thats already in the app store. I had push notifications set up and it work when i tested it for the ad hoc distribution using the production certificate.
I did another provisioning profile for the app store and submitted it. Strangely after the app got approved some provisioning profiles disappeared . After being in there for awhile they came back but the push notification setting was turned off even the production ssl certificate for push notif was gone.
Now, Push notifications are not working.
Tried generating another ssl cert and the whole keychain exporting stuffs but it still doesnt work.
I don't know if the app, submitted has the profile with the push notification settings on.
Is it possible to add push notifications to that app? If not what is my best solution here?
No if the App submitted has not been signed with a Push Notifications Profile , then you pretty much can't do any thing about it, You may have to resubmit an entire new Version with a different Provisioning Profile with Push Notifications enabled,
Did you check the server you are trying to connect to when you send the push notifications?
Remember that there are more than 1 server :
ssl://gateway.push.apple.com:2195
ssl://gateway.sandbox.push.apple.com:2195
ssl://feedback.push.apple.com:2196
ssl://feedback.sandbox.push.apple.com:2196
It seems that some migration script went wrong on Apple's server. Your best bet would be to contact Apple support and explain your problem to them. May be they can do something for you.
Even after creating a new push notification certificate you would not be able to enable the push notification for the app already present on app store. Since the certificate is regenerated, you would need to update your profiles too and then use them to prepare a new version for app store.
I think the problem was that the devices that i tried had the app built on them from xcode. Because it worked for other devices that i never used xcode with. After removing all the related provision profile from the device itself, located in the settings menu of the phone, reinstall the app from the store then it started to work.

Apple push notifications only working on one device

I have push notifications working on my main development device... but it is not working for my test device (using the same application). Does the test device also need to be set up as a development device? The app works.. it just does not populate the device token up to the server. I need to be able to send the app to testers and have push notifications work for everyone.
Beware that an app built with a development provision profile, must be notified trough the sandbox-version of the PNS-service with a development push certificate. If your application is built with a distribution sertificate ( either ad hoc or App store), you must use the production PNS-service with a production push certificate.
Hope this helps:)

Resources