Binding a Mobile Client with the Push Notifications service
To use mobile services, you must represent your mobile app in OpenShift using a Mobile Client, and that Mobile Client must be associated with the mobile service. This association is called binding and once it’s done, your mobile app can use that service immediately.
|The association between a Mobile Client and Push Notifications Service uses the Service Broker bind feature.|
To associate a Mobile Client with a mobile service:
Navigate to the Overview of your OpenShift project.
Click on the Mobile Client and navigate to Mobile Client view.
Your mobile app will be represented by two items in OpenShift, an item in the Mobile Clients list and an item in the Provisioned Services list. Make sure to click on the item in the Mobile Clients list.
Navigate to Mobile Services tab.
Click Create Binding and follow the Create Binding wizard to associate the Mobile Client with the Push Notifications Service.
Fill out the binding parameters required by the Push Notifications Service.
When you bind a mobile client to the Push Notifications service, a variant is created to store the credentials required to communicate with a push network. Those credentials need to be provided in the binding dialog.
First pick your Mobile Client Type. Depending on the selection you then have to fill out the fields for either Android or iOS.
After clicking Bind your variant will be created in UPS and you should see a new binding for your mobile client.