Skip to content

Push Notifications

Step 1: Enable push capabilities

Inside Xcode, navigate to the “Capabilities” tab of your app. You will need to enable “Push Notifications”.


Step 2: Generating a Certificate Request

  • Launch the “Keychain Access” app on your Mac.

  • Select “Keychain Access> Certificate Assistant> Request a Certificate From a Certificate Authority”.


  • Enter your e-mail, select “Save to disk” and press “Continue”. You should get a .certSigningRequest file.


Step 3: Get the Certificate

  • Visit your account page, select the Identifiers section and select your app. Inside the page, enable Push Notification capabilities.


  • Go to the app page again and click on Configure next to the Push Notification capability. On the dialog, Press Create Certificate for the Production SSL Certificate (When you create a production certificate for push notification you can use it for both the sandbox and production environments).


  • Press “Choose File” to upload the .certSigningRequest file you generated previously and press Continue


  • Your certificate is ready. Press “Download” to get the .cer file.


Step 4: Upload a .p12 Key to NearIT

  • Click on the .cer certificate you generated previously (chapter 3.5). It will open the “Keychain Access” app on your mac.

  • Find your certificate, click on it and select “Export”. Enter a password, you will get a .p12 file.


  • Open NearIT web interface, select your app and navigate to “Settings> Push Settings”. Upload your .p12 under the “Setup iOS push notifications” block. You will be prompted to enter the password you have chosen previously


To test that everything went ok, you should enroll your device as a Test Device and send it a test push from the “Settings> Push Settings” section.

The app is now able to receive push notifications from NearIT.