API Reference
Log In

MOCA Platform uses Apple Push Notification Service (APNS) to deliver notifications to your iOS users. Please bear in mind this is only for remote push notifications, and this is not mandatory for location based notifications (Proximity Experiences).

Before starting

In order to get the certificates and upload them to MOCA, you will need:

Enable Remote Push Notifications on your App ID

707
  • Each App should have an App ID, click the App ID that corresponds to your App (or create it if you have not already done so). In any case, ensure that the Push Notifications service is enabled.
635
  • Click on the Development or Production certificate button and follow the steps.

Exporting certificates

  • Open the KeyChain Access App of your Mac, there you will find the certificates that you downloaded in the previous step.

📘

This application may have different names depending on your Mac language configuration:

Català: “Accés a clauers”
Español: "Acceso a llaveros"
Français: "Trousseau d'accès"
Português: "Acesso às Chaves"

  • Right click on the certificate, and select "Export ....". Select the p12 format and create a password for the file, do not lose this password as you will need it a next step.
662

❗️

Production vs Development

Ensure that the App in MOCA Console is pointing to the right servers. Production certificates won't work for Development apps and vice versa.

🚧

Warning

Do not submit Apps to Apple with Development certificates.

Uploading the certificates to MOCA Console

  • Login in to your MOCA Account, and go to Apps > app_to_be_configured > Settings > Services
  • Upload the file using the Add button in the "APNS" section, you will need the password you created in a previous step.
778
  • All done. You can now start sending notifications to your users using MOCA Platform.