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 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
public static void subscribe()
Parameters
- None – subscribe has no parameters.
Examples
- Subscribe to a Sample Application – Subscribe to SUP101DB.
SUP101DB.subscribe();