There are two ways to configure this application so that your offline mobile users will automatically get updates as the database changes:
An administrator can use the Mobile Studio to assign an application to a registered mobile user. See the Unwired Accelerator Administration Guide for information.
An individual user can subscribe to the application and modify their subscription to enable push notification of changes.
End users with the UA mobile offline client installed on their mobile devices can view available mobile applications, subscribe to them, and manage their subscriptions from their mobile devices. This tutorial shows how this is done from a BlackBerry device, but the same basic process applies to all of the various mobile device clients.
Self-registration for push notification on an
application
For push synchronization to work for BlackBerry devices, you must configure the device so that it can receive e-mail or SMS messages. This tutorial assumes e-mail is the notification protocol.
The Unwired Accelerator BlackBerry client must be running on the device (the UA icon should appear in the application menu).
Use the trackwheel to navigate to the Settings menu.
Scroll to the Email Address item and open it.
Enter an e-mail address for which the BlackBerry receives mail, and click Save.
Return to the main form of UA Application, and use the trackwheel to select the Profiles | New Profile menu item.
Fill out the form with your user name, password, UA server address, and port number. Save your profile.
When you save your profile, the UA application attempts to verify the UA server address data by connecting to the server. If successful, the device’s information is registered with the UA server and an administrator will be able to see your user profile from Studio under Manage | Users/Roles | Mobile Users.
Navigate back to the UA main menu, and choose Refresh All Apps to retrieve a list of all available mobile applications from this server.
Click the EmployeeSales checkbox and select Refresh App from the menu.
The application and its data are synchronized. Several hundred rows of data may be returned, so this process could take some time.
After the initial synchronization finishes, select the employeeSales application and use the menu to enter Application Info. The Application Info form allows you to edit how you are subscribed to this application.
Click on the Push Enabled checkbox to configure this application to be automatically updated to your device as the application data changes.
From this form you can also control the minimum update frequency in minutes. You can also control what happens when an update notification arrives at your device for this application. It can either re-synchronize the application automatically, or display a dialog allowing you to choose whether to synchronize or not; or you can ignore the synchronization completely.
Use the Save menu to save your changes to this application.
Perform a Refresh App on the changed application to update the UA server with this change in the application subscription. After this, the UA server sends push notificatons to the client when the application data changes.