iOS Push Notification Certificate Setup
Process to setup iOS push notification certificates to receive notification from Social PlusSDK / Social PlusUIKit.
Last updated
Process to setup iOS push notification certificates to receive notification from Social PlusSDK / Social PlusUIKit.
Last updated
To send or receive push notifications using our SDK, you would need to create push notification certificates from the Apple Developer Console & Upload to our Social Plus console.
Here are the steps to generate a push notification certificate from the Apple Developer Console.
When a new .p12 certificate is created, the previous certificate gets revoked and cannot be used again.
Step 1:
Go to Apple Developer Console (i.e. https://developer.apple.com) and click on Certificates.
Step 2:
Select Apple Push Notification Service SSL (Sandbox & Production)
This certificate will be applicable for both Sandbox & Production environments so you do not need to create a separate one for each one.
Step 3:
Follow the rest of the steps of creating certificates as shown by Apple & download the .cer file.
Step 4:
Double-click on the .cer file you downloaded in the last step in Finder. After a few seconds, the Keychain Access program should open.
Step 5:
Select Login → My Certificates, then right-click on the Apple Push Services certificate that you just installed. It would show you some options as shown below.
Step 6:
Select the Export “Apple Push Services …” option and save the file using the .p12 extension. If you add a password while exporting, you will need to enter the same password in the Social Plus Console.
Step 7:
Open Social Plus Console. Select Settings → Push Notifications & Upload this .p12 file to Social Plus Console.
This certificate can be used to receive push notifications in your production build (Distributed through Appstore or Testflight). Currently, we do not support receiving push notifications in the Debug build.
That’s it. Now the certificate is setup, Please follow the steps shown in the Register & Unregister Push Notifications section to correctly send APNS tokens to receive push notifications.
Please make sure you have Push Notification capabilities enabled in your Xcode Project.