Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.1 (Français) » MobiLink - Server-Initiated Synchronization » Setting up server-initiated synchronization » Listeners » Message handlers » Working with message handlers


Initiating actions

When a message matches the conditions of a filter, an action is initiated. For more information about filtering push notifications, see Filtering a message.

Actions can be specified by running the Listener with the following syntax:

dblsn ... -l "...;action='action-command command statement'"

The following action commands allow you to perform different tasks when a message is filtered:

  • START   Start an application, and allow it to run in the background.

  • RUN   Run an application and wait for it to complete before receiving more push notifications.

  • POST   Post a window message to a process that is already running. This command can only be used on Windows devices.

  • SOCKET   Send a message to an application using a TCP/IP connection.

  • DBLSN FULL SHUTDOWN   Shut down the Listener.

For a detailed list of action commands and syntax reference information, see Listener action commands for Windows.

For more information about incorporating action variables into an action, see Action variables.