Skip to content

Push Notifications

Step 1: 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 2: 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 3: 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


Step 4: Enable push capabilities

Build your cordova app, open the XCode project placed in platform/ios and enable Push Capabilities for the Target. capabilities

Step 5: Request notification permission

In your Cordova app, request notification permission. The SDK will automatically get the push token and handle notifications.