Using the Cloud Service to Send Push Notifications

From RAD Studio
Jump to: navigation, search

Go Up to BaaS Overview


There are multiple providers on the market that can be used for sending notifications. RAD Studio comes with pre-installed components for two providers:

Before you create your Kinvey application or Parse application, ensure that:

Create a Project at Kinvey

Setting up your Project

  1. Go to Kinvey console and click New App to create a new project. (Click Sign up for Kinvey.)
    KinveyStartPage.png
  2. To create your app backend:
    • Set a name for the project.
    • For platform, select REST API and click Create App.
    AppBackend.png
  3. Now you can see the AppKey, App Secret and Master Secret parameters that you will need later.
    NOTE: You can also go to the app settings page to copy App Secret and Master Secret.

    AppDetails.png

Push Configuration

  1. In the left-menu of the Kinvey console of your project, select Engagement.
    Push2.png
  2. Click Configure Push.

Google Cloud Messaging Configuration (Android Configuration)

  1. Copy:
    CCG Configuration.png
  2. Click Save GCM Configuration.

iOS Configuration

  1. Upload your Apple p.12 certificate to Kinvey.
    IOSConfig.png
  2. Click Save iOS Configuration.

Adding a User

  1. In the left-menu of the Kinvey console of your project, select Users.
    User.png

  2. Select Add User and define a user and a password.
    AddUser.png

  3. Click the Create User button.

Create a Project at Parse

  1. Go to the Parse page, click either Sign Up or Try it for free, and create a new app.
    NewAppParse.png
  2. Specify a name for your app.
    AppNameParse.png
  3. A list of Keys is displayed. Click Data Browser to see configuration details.
    NOTE: You can access this list later by browsing to Settings > Keys.

    AppKeysParse.png
  4. Go to Settings > Push and enable Client Push
    PushNotif.png
  5. (iOS only) In Apple Push Certificate section upload your Apple p.12 certificate. The Apple App ID and the Parse App are now linked.
    Identifier.png

See Also

Code Samples