`
Mobile Accelerator for Oracle Service Cloud — November 2016
Top of Topic

Create the custom configuration setting

You create the custom configuration setting for Android push notifications in Oracle Service Cloud. The setting is read by the object event handler that triggers the push notification.

Before you begin

You use the project number and API key value from to create the configuration setting. You can use the CUSTOM_CFG_Accel_Mobile file as a template; it is in the imports/custom_configuration folder that you downloaded.

About this task

This procedure assumes that you have not already created a custom configuration setting for the Mobile Accelerator, such as in . If you have already created the configuration setting, you can edit it to add the push notification content.

Procedure

  1. In Oracle Service Cloud, click the Configuration button on the navigation pane.

  2. Under Site Configuration, double-click Configuration Settings.

    The Configuration Settings editor appears, with the search window open.

  3. Click Cancel to close the search window.

  4. Click New in the ribbon, then select Text.

  5. Fill in the following fields:

    Field Value
    Key CUSTOM_CFG_Accel_Mobile
    Type Interface
    Required Yes
    Default
    { 
      "hosts":[ 
          { 
            "rnt_host":"https://your_site_interface",
            "server_timezone":"",
            "push_notification":{ 
                "gcm":{ 
                  "senderId":"project_number",
                  "appKey":"API_key"
                },
            }
          }
      ]
    }

    where:

    your_site_interface is the name of your site, for example, mysite.example.com

    project_number is the project number from the previous procedure, for example, 123456789012

    API_key is the API key from the previous procedure, for example, AMzaSyDgOBFI-pmlmVWGZ4P3AORBfpO_Y7OlO6k

    Maximum Length 300000

  6. Click Save & Close.

Results

CUSTOM_CFG_Accel_Mobile is listed in the Configuration Settings editor when you search for settings in the Custom folder.

What to do next

Next you add the project number to the mobile application in Oracle JDeveloper.