push_service_create_channel()

Creates a channel for receiving push messages from the Push Initiator.

Synopsis:

#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)

Since:

BlackBerry 10.2.0

Arguments:

ps

A pointer to the push_service_t structure used to create the request.

cb_func

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.

transport_ready_cb_func

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.

Library:

libPushService

Description:

Once the channel is successfully established, the application does not have to call it again. The Push Service maintains the channel.

Returns:

PUSH_SUCCESS upon success, PUSH_FAILURE with errno set otherwise.

Last modified: 2013-12-23

comments powered by Disqus