IGDPushChannelListenerOnChannelClose Method |
Namespace: GD
void OnChannelClose( string token )
This callback will be invoked when the associated Push Channel is closed. This means closed by the remote end, or by the application having called disconnect.
Invocation of this callback notifies the application on the device that:
If the OnChannelClose(String) was not expected, the function that is invoked could alert the user that Push Channel notifications will not be received, or cause this to be displayed as an ongoing state. The function could also initiate release of the Push Channel object. Alternatively, reconnection could be initiated, see Connect.
Note that this callback is only invoked for permanent Push Channel closure. This callback is not invoked for transient losses of channel communication. For example, this callback is not invoked when the application loses packet data coverage or otherwise cannot connect to the BlackBerry Dynamics proxy infrastructure. Losses of connection, which affect all Push Channels, can be monitored by the GDPushConnection event handler. See IGDPushConnectionListener.