I have a problem with distribution certificate of push notification. First I used developer certificate and push notifications works fine. Now my app is in app store and I use distribution certificate. I generated it in developer portal, create provisioning profile and subscribe app with this profile. Then I created certificate for server side and used it. If I send notification apple return connection OK but notification is never deliver. Where is a problem ? Thanks a lot ...
Try to generate a new certificate, it happen sometimes.
Thus, what kind of script do you use to send push notification ? if you use Easy APNS, make sure the "Production" certificate is selected for each device in you database.
Related
I have a application in the appStore that use push notifications.
I've generated a new version of this app, and using the same certificates that I used the first time that I submitted the app in the market, I have submitted the update to appStore.
After approve the app, I've noticed the push notification doesn't work after updated the app in the devices.
Could be this wrong behavior done for using the same certificates than before???
Thanks in advance!
Updating an application using same certificates as before won't change the working status of push notification.
Maybe your problem is on server side and your push notification certificate is out of date and need to be regenerated. Push certificates have a validity of about one year.
I need to create an iPhone app, that uses a push notification feature. I have created the "aps_developer.identity.cer" certificate and downloaded it from Apple Developer account. Is this certificate has any importance at the iPhone App side OR it is solely used at SERVER side to send Device TOKEN? Please help. Thank you.
Both. You need separate certificates for development and release that support push notifications as well as a distribution certificate (Ad hoc or AppStore) that is linked to the AppID in the other certificates these are used to sign the app as well as being used for the server.
E.g. If you are debugging, the server needs to use the development certificate, if you are testing or have released the application, the server needs to use the distribution certificate. The apple push servers change depending on which method you are using. I would read the apple documentation on push notifications which also covers the provisioning side of things.
https://developer.apple.com/library/mac/#documentation/NetworkingInternet/Conceptual/RemoteNotificationsPG/Introduction/Introduction.html
As far as creating the server certificate, I used this guide and found it very helpful:
http://code.google.com/p/apns-php/wiki/CertificateCreation
Good Luck!
I hired an objective-c programmer to develop my iphone app, he wrote the code, and now I want to test the push notification service, but he wouldn't send me the p12 file, he said he cant send me the p12 key, because it contains his private key.
1) So can I create the p12 file myself, if so how can I do this? doesn't it need to be attached to the app? I need the app's id?
2) Can I just add him as a developer under my apple' developer account so he can set up everything?
The key used with APNS does not need to be the same key used for signing apps. It should not be the key used for signing apps, since it will end up installed on a virtual server on third-party hardware in a fourth-party data center. You might even want to use different development and production keys, if more people will have access to the development server (e.g. developers might run it on their own computers as necessary for debugging).
You can create the keypair, send him the CSR, get him to create the cert and send that to you, and use the cert on your server.
You'll need to set the app up under your own account at some point anyway (assuming you're not going to pay him to support it indefinitely) so you might as well do it now. Depending on how much you trust him, you can add him as a developer or just do it all yourself.
I'm pretty sure you can also give accounts restricted permissions - just enough to upload a CSR, create an "iPhone Development" cert, and download provisioning profiles. You can do the rest (add UDIDs, set up app IDs, and configure provisioning profiles), right?
You can create your own .p12 file and your app is not dependent on push notification certificate.
.P12 is used to authenticate and communicate between correct device and APNS server.
Check this tutorial
Once done you can test using by your own server if you have access or use the below tool to test
Pushtry.com
I need to integrate apple push notifications. I am not clear about the certificate needed for the server. As I know this is a generated certificate form server end and does it needed to be signed by a valid certificate authority? If so how does APNS going to validate this?
For the apple sandbox cant we proceed with a test certificate?
Is there any chance to test this APNS process in the simulator?
Thank you.
You need to generate the certificate on the iOS Provisioning Portal, according to the instructions on the docs (also available on the portal). You don't need to worry about the details of the certificate; the Provisioning Portal takes care of all the details for you. You need to do this for each of you App IDs and you need to be the Agent of your organization to do this.
My app just got approved for the apple store. I downloaded it an installed it on my iPhone - but it looks like push notifications are broken!
I was successfully testing push notifications in production using an adHoc provisioning profile. I had no problems. The only thing I did differently when I submitted to apple was using an app store distribution profile.
The application never asks me (or anyone else who has downloaded it) if I want to receive push notifications. Consequently, the phone never talks to my server to send the push token (because application:didRegisterForRemoteNotificationsWithDeviceToken: is presumably never called). Also the application does not appear in the settings app under the notification settings.
What could I be doing wrong??
EDIT: While the app was awaiting approval, I was having some trouble generating my production push certificate. Could this be relevant?
Problem generating APN SSL certificate after submitting to apple store
Be sure you've created your production App ID and have enable push notifications upon it. Then create the provisioning profile for that app. Download and open the file with a text editor to MUST make sure that the profile contains this key and value:
aps-environment
production
If not, then make sure you really have enabled the app ID for production push before you generated your provisioning profile.
After you make your build, you can check the final build to verify it has the aps-environment entitlement (you're looking for the aps-environment code signing entitlement under "Internal requirements):
codesign -dvvvv --entitlements - MyCoolApp.app
Did you use the same Application ID for both the ad-hoc and the distribution mobileprovision files? It needs to be a complete identifier, rather than just partial.