Subscribe Data

The subscribe method allows the application to subscribe to a server package.

+(void) subscribe

The preconditions for the subscribe are that 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.

A subscription message is sent to the Unwired Server and the application receives a subscription request result notification from the Unwired Server.

[SampleApp_SampleAppDB subscribe];