Using push agents

The first time any user obtains a push-subscription for an application, the UA server will automatically create an agent to monitor this application for changes

StepsBuilding the agent

  1. In Mobile Web Studio, select Automate | Agents | Ready (or Stopped) item to see the poll-employeeSales agent that has been created.

  2. Click the Edit button. In the Agent Builder, on the Schedule tab you’ll see that the Recurrence setting matches the Content Cache Interval of 15 minutes for the employeeSales application.

  3. On the Action tab, click Deliver, then click the Edit button.

  4. In the Action Details window:

    Click OK.

  5. In the Agent Builder window, click Save.

  6. Click OK.

Now, each time the agent executes (every 15 minutes), it retrieves a list of all the users who are subscribed for push notifications on this application, and executes the application as each of these users in turn check to see if the data has changed. Whenever the data changes, UA sends a notification only to those users who are monitoring the same regions.

NoteUsing the Push-Registered Users User-List feature can cause performance problems with the UA server if the frequency of the agent is high, or the number of users is large. It is recommended that if you are going to create push subscriptions for an application that you do not use autofill adapters to personalize the application. That way the agent can simply execute the application once each time it runs, in the context of a default user, and generate notifications to all subscribers as data changes.