Creates a channel for receiving push messages from the Push Initiator.
#include <bbpush/push_service.h>
int push_service_create_channel(push_service_t *ps, push_callback_t cb_func, push_transport_ready_callback_t transport_ready_cb_func)
BlackBerry 10.2.0
A pointer to the push_service_t structure used to create the request.
Callback in response to push_service_create_channel(). This callback contains a status_code parameter to specify the failure condition. This callback function cannot be NULL.
Callback in response to push_service_create_channel(). Sent when a previous push_service_create_channel() request failed with a PUSH_ERR_TRANSPORT_FAILURE (10103) or PUSH_ERR_PPG_SERVER_ERROR (10110) status code. This callback function cannot be NULL.
Once the channel is successfully established, the application does not have to call it again. The Push Service maintains the channel.
PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.