push_connection_close_callback_t

The callback that is invoked when the connection to the PNS Agent has been closed.

Synopsis:

#include <bbpush/push_service.h>
 
typedef void(* push_connection_close_callback_t)(push_service_t *ps);

Since:

BlackBerry 10.2.0

Library:

libPushService (For the qcc command, use the -l PushService option to link against this library)

Description:

When this happens, the application or service needs to re-establish the connection with the PNS Agent by calling push_service_get_fd() periodically until push_service_get_fd() returns a valid file descriptor.

Call push_service_set_connection_close_callback() to register this callback.