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
Building the agent
In Mobile Web Studio, select Automate | Agents | Ready (or Stopped) item to see the poll-employeeSales agent that has been created.
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.
On the Action tab, click Deliver, then click the Edit button.
In the Action Details window:
Description – enter a description for the action.
Destination Viewer – select PDA. The BlackBerry device is considered a PDA in this instance.
User List Adapter – select Push Registered Users.
Click OK.
In the Agent Builder window, click Save.
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.
Using 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.