Show: Object Pascal C++
Display Preferences

Setting Up the Messaging Service

From Appmethod Topics
Jump to: navigation, search

Go Up to Push Notifications

You can send Remote Notifications to your Android or iOS devices from one of the cloud service providers available (Kinvey or Parse) or from the backend service EMS.

To allow your applications to receive Remote Notifications, you need:

  • For Android apps, a new project on Google Developer Console.
  • For iOS apps, a new App-ID on Apple Developer Program.

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:
    ProjectName.png

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

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

  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 0.0.0.0/0.
  6. Record the API key, which is needed to configure the push notification provider.
    APIKey.png

Registering with Apple

Note: You need to be a team agent or admin to perform the following tasks on Apple Developer Program.

Creating iOS App ID on Apple Developer Program

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

  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:
    AppName.png

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

Creating a Certificate for your App

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

  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…
    Keychain.png
  5. On the Certificate Assistant page:
    • Enter your e-mail address and your name.
    • Select the Save to disk option.
    • Press Continue:
    CertInfo.png
  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:
    GenerateCert.png
  8. Press Generate, and you will get a Certificate. Download the certificate, and install it on your system.
    CertReady.png
  9. Now you have a certificate installed on your system:
    AppleDev.png

Creating a Provisioning Profile

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

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

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


  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:
    Nameprofile.png

  6. Download your profile:
    Profileready.png

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

Exporting the .p12 Certificate

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

  2. Define a name and click Save.
    SaveCert.png

    Note: You can only choose a password if you use Kinvey or EMS as the service provider.

See Also

Personal tools
In other languages