-
Notifications
You must be signed in to change notification settings - Fork 0
How to Configure & Send Apple Push Notifications using PushSharp
This is a step by step Picture guide that will show you how to set up your Apple App to be enabled for sending push notifications, create the proper certificates for sending push notifications, and how to configure your PushSharp code to send out push notifications.
I cannot stress enough about how important it is in this process to make sure you are using the right Push SSL Certificates (either Development/Sandbox or Production), as well as the type of provisioning profile you are using to generate your device tokens! Almost everyone who has issues with sending notifications, has an issue with not setting this up properly!
Sandbox/Development <=> Development Push SSL Certificate <=> Development Provisioning Profile App Signing Production <=> Production Push SSL Certificate <=> AdHoc or AppStore Provisioning Profile App Signing
Login to the iOS Dev Center, and continue to the iOS Provisioning Portal
Go to the App IDs section to setup Push Services for your App
If you already have an App ID, continue to Step 5
If Push is already enabled for your App, it may be worth going in to configure it again, and regenerate your certificates, unless you know for certain that the private and public keys for your certificates are already exported in a .p12 file, or you know where they are to obtain a .p12 file with them. If that didn't make any sense, or push is not already enabled, or it is enabled but no certificates have been created, continue following!
NOTE: After this guide, you will repeat steps 7 through 20 for the 'Production' Push SSL Certificate.
IMPORTANT: Make sure your Certificate has the private key associated with it in your keychain. Some people make the mistake of going into the provisioning portal on a different development machine, and simply downloading the Push certificate that's already been created previously. If you do this on a different machine, it will NOT have the private key, and you will not be able to use it to connect to send notifications. One way you can tell if the private key exists in Keychain is if there's a little grey triangle beside the certificate that when clicked, expands the certificate to show the private key associated with it.
That's it! As mentioned before, you can repeat steps 7 through 20 for your Production certificate. Good luck!