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:
- A membership in the Apple iOS developer program
Enable Remote Push Notifications on your App ID
- Sign in to your account in the Apple developer center, and then go to Certificates, Identifiers & Profiles
- 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.
- Click on the
Development
orProduction
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.
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.
- All done. You can now start sending notifications to your users using MOCA Platform.