Running Multiple Push-Enabled Applications on a Device

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.

To run multiple applications on a device:

  1. 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.
  2. Install SybaseServerSync on your Windows Mobile device. The cab file can be found in the <UnwiredPlatform_InstallDir>\ClientAPI\RBS\WM\ServerSync\ folder.
  3. Configure SybaseServerSync with the host, port, user, and stream parameters.

    SybaseServerSync
  4. Select the Launch tab and click the start Listener button to launch the SybaseServerSync tool.
  5. 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