Setting Up the Messaging Service

From RAD Studio
Jump to: navigation, search

Go Up to Mobile Tutorial: Using Remote Notifications (iOS and Android)

Remote Notifications require:

  • A new project on Google Developer Console for Android apps
  • A new App-ID on Apple Developer Program for iOS apps

Use the following steps to set up the messaging service for Android and iOS apps.

Registering with Google

  1. Go to Google Developer Console
  2. Select Create Project and define a name for your project:

  3. On the project page, you need both Project ID and Project Number later in this procedure:

  4. Select APIs & auth from the left-hand side, and enable Google Cloud Messaging API for Android:

  5. Select Credentials from Public API access section, press the CREATE NEW KEY button, and select SERVER KEY.
    For testing purposes, you can set the SERVER KEY to
  6. Record the API key, which is needed for the next step:

Registering with Apple

Creating iOS App ID on Apple Developer Program

  1. Go to iOS Developer Program > Certificates, Identifiers & Profile > Identifiers > APP ID page.

  2. Press the + button at top right to define a new App ID. Fill App Name, App ID Prefix, App ID Suffix. Also, select Push Notifications in the App Services section:

  3. Click Continue, and then press Submit to confirm your App ID:
    Now your app is registered.

Creating a Certificate for your App

  1. On Certificates, Identifiers & Profile Apple page select your app and click Edit:
  2. Select Create Certificate in the Development SSL Certificate section:

  3. In the About Creating a Certificate Signing Request (CSR) page, select Continue.
  4. On the Mac, select Keychain Access > Certificate Assistant > Request a Certificate from a Certificate Authority…
  5. On the Certificate Assistant page:
    • Enter your e-mail address and your name.
    • Select the Save to disk option.
    • Press Continue:
  6. Specify a file name and save. Now you have a CSR saved as a file.
  7. On the Apple Developer Program web page, specify a CSR:
  8. Press Generate, and you will get a Certificate. Download the certificate, and install it on your system.
  9. Now you have a certificate installed on your system:

Creating a Provisioning Profile

  1. On the iOS Provisioning Profiles page, select + at the top right:

  2. On the Add iOS Provisioning Profile page:
    • Select iOS App Development as type of the profile. Press Continue:

    • Select the App ID that you created in the previous step:

  3. Select the list of people who can use this profile, and click Continue.
  4. Select the list of devices for this profile, and click Continue.
  5. Specify a name for the profile, and click Generate:

  6. Download your profile:

  7. Double-click the profile, and you should now see it as a new profile in Xcode on your Mac:

Exporting the .p12 Certificate

  1. In Keychain Access on the Mac, select the certificate, right-click it and choose Export.

  2. Define a name and click Save.

  3. You can only choose a password if you use Kinvey as Cloud Service.


See Also