Subsequently Starting an Application

Subsequent start-ups are different from the first start-up.

Starting an application on subsequent occasions:
  1. Use the registrationStatus API in the SUPApplication class to determine if the application has already been registered. if it has been registered, then only perform the following steps:
    1. Get the application instance.
    2. Set the applicationIdentifier. The applicationIdentifier must be the same as the one used for initial registration. 
    3. Initialize the generated package database class with this application instance.
    Note: Once the application is registered, changes to any of the application connection properties are not saved. To modify the connection properties, unregister the application, change the connection properties and then register again. Unregistering the application removes the user from the server.
  2. Set up the connection profile properties if needed for database location and tuning parameters.
  3. Set up the synchronization profile properties if needed for SSL or a relay server.
  4. Start the application connection to the server using the existing connection parameters and registration information.
[application startConnection];
Related reference
Application APIs