If you need to run multiple push-enabled applications on a device, you cannot call certain push configurations APIs in your push-enabled applications. Instead you must manually configure and launch the server synchronization tool, SybaseServerSync.
You can run multiple push-enabled applications on a single device if the following requirements are met.
- The push-enabled applications must have same connection information (host, port, synchronization protocol, stream parameters, login user, password, and domain), because of the device-level dependency of the SybaseServerSync application.
- The push-enabled applications cannot start, stop, or configure the SybaseServerSync application in their client code. You must start the SybaseServerSync application manually before running the push-enabled applications.
To run multiple applications on a device:
- Develop the applications as described in Developer Guide for Windows and Windows Mobile > Reference < Replication-Based Synchronization APIs > Push Configuration APIs > Creating a Replication-based Push Application.
- Install SybaseServerSync on your Windows Mobile device. The cab file can be found in the <UnwiredPlatform_InstallDir>\ClientAPI\RBS\WM\ServerSync\ folder.
- Configure SybaseServerSync with the host, port, user, and stream parameters.
- Select the Launch tab and click the start Listener button to launch the SybaseServerSync tool.
- Create your applications by writing the SIS sample code. Refer to the sample code in Developer Guide for Windows and Windows Mobile > Reference < Replication-Based Synchronization APIs > Push Configuration APIs > Creating a Replication-based Push Application, but ensure that your push-enabled application does not call any of the following APIs from the generated database class:
- RegisterServerSyncConfiguration
- LaunchServerSyncHelper
- ShutdownServerSyncHelper