First Push Walkthrough
In the Cloud Foundry App Manager, click on the “Marketplace” link. Select “Push Notification Service” from the list of available services.
Select the “Default” service plan. Give the service instance a name and make sure to select the correct Space for the service to be created in before clicking the “Add” button.
You can now click on the “Manage” link for the Push Notifications Service instance you’ve created. This will open the Push Dashboard.
Add an application by filling in the form that appears when first navigating to the dashboard. If applications already exist, you can access the add application screen by clicking on “Create New Application” on the left hand sidebar dropdown.
Fill in fields on the new application screen. There are two fields: name and description. These fields are purely for keeping track of which application is which.
Create a new platform by clicking on the ‘Add Platform’ button and filling out the proper fields depending on the platform type.
For Android platforms you will need to provide Project Number and Google Key values. The Project Number is the numeric value found at the top middle of a project on the Google Developers Console. Do not use the 'Project ID’. The Google Key is a Server API key, created on the “Credentials” screen of the Google Developers Console.
For iOS platforms you will need to create a APNS Development Certificate and APNS Production Certificate using the Apple Developer Website. These files, along with their associated private keys, need to be exported from your Keychain Access program into a password protected P12 file. You will upload this P12 file and provide its password when you create your platform on the PCF Push Notification Service dashboard.
After saving, click on 'Configuration’ on the left sidebar, this is where the UUID and secret will be found. These values are used to register devices and eventually send pushes.
Now you will have to integrate the sdk with your app. See the getting started section of the SDK documentation.
Click on the 'Devices’ link on the left sidebar to see registered devices, and click on the 'Test Push’ button for the device you wish to send a push.
Fill in a message and press send to send a test message.
If the server accepts this push for delivery, a receipt will be shown on screen. This does not guarantee delivery to the device (device could be off, notifications could be disabled, etc).