Creating a Replication-based Push Application

The device application must meet these requirements to utilize the replication-based Push Synchronization APIs described in this section.

You can develop the push application directly from generated mobile business object (MBO) code, or from the Device Application Designer.

  1. Properly configure and deploy the mobile business objects (MBOs).
    1. Create a Cache Group and set the cache policy to Scheduled and set some value for the Cache interval, 30 seconds for example.
    2. Create a Synchronization Group and set some value for the Change detection level, one minute for example.
    3. Place all Mobile Application project MBOs in the same Cache Group and Synchronization Group.
    4. Deploy the Mobile Application Project as Replication-based in the Deployment wizard.
  2. Configure the Emulator or device:
    1. Copy the server synchronization tool SybaseServerSync.v2.CAB or SybaseServerSync.v35.CAB from ClientAPI\ServerSync\ce\installer to the Emulator or device.
    2. Click on the CAB file to install it on the Emulator or device.
  3. Develop the application in Device Application Designer.
  4. Add the Push Settings and Synchronization stock screens.
  5. Generate the device application code.
  6. Run the application in the Emulator or device.
  7. In the Push Settings screen, define the polling interval and notification file path.
    winmob_dev_ref_push_settings
  8. In the Synchronization screen, select the Enable push checkbox, choose a push notification mode, and click Save. winmob_devref_push_settings2