The Application instance contains the information and authentication credentials needed to register and connect to the Sybase Unwired Platform server.
// Initialize Application settings
SUPApplication* app = [SUPApplication getInstance];
// The identifier has to match the application ID deployed to the SUP server
app.applicationIdentifier = @"SUP101";
// ConnectionProperties has the infomation needed to register
// and connect to SUP server
SUPConnectionProperties* props = app.connectionProperties;
props.serverName = @"supserver.mycompany.com";
props.portNumber = 5001;
props.activationCode = @"activationcode";
// Other connection properties need to be set when connecting through relay server
// provide user credentials
SUPLoginCredentials* login = [SUPLoginCredentials getInstance];
login.username = @"supAdmin";
login.password = @"supPwd";
props.loginCredentials = login;
// Initialize generated package database class with this Application instance
[SUP101SUP101DB setApplication:app];