subscribe

Subscribes to a server package. A subscription message is sent to the Unwired Server and the application receives a subscription request result notification from the Unwired Server. If the subscription succeeds, the onSubscribeSuccess method of the ICallbackHandler is invoked. If the subscription fails, the onSubscribeFailure method of the ICallbackHandler is invoked.

Prerequisites for using subscribe:
  • The mobile application is compiled with the client framework and deployed to a mobile device, together with the Sybase Unwired Platform client process.
  • The device application has already configured Unwired Server connection information.
  • Authentication credentials must also be set, using either the beginOnlineLogin or offlineLogin APIs.

Syntax

+(void) subscribe

Parameters

Returns

None.

Examples