Controlling Notifications for Native Applications With Cache Partitions

Unwired Platform sends out change notifications based on Subscriptions. MBOs are assigned to synchronization groups and when the device application registers for change notifications, they become part of a subscription. Whenever Unwired Platform detects a change in an MBO, it sends out a notification to all subscribers.

You can further control notifications through the use of cache partitions:

If MBO data within a synchronization group is partitioned by synchronization parameters, then only subscribers who have subscriptions to data in an affected partition are notified.

In the Unwired Platform client API, SynchronizationGroup includes setEnableSIS(boolean) so that a client application can enable/disable push notifications, and the same class has setInterval(int minutes) to specify the minimum frequency over which Unwired Platform attempts to send notifications for a given synchronization group.

These settings can also be controlled through Sybase Control Center:
  1. After you deploy a package, navigate to Domains > <DomainName> > Packages > <PackageName> > Subscriptions > Replication.
  2. Select the Template tab and create subscription templates for the synchronization groups.
The template creates a subscription for each client the first time they synchronize that cache group. You can use it to set defaults for the Notification Threshold (equivalent to the SynchronizationGroup.setInterval client API). If you select the Admin lock radio button, the template is applied and the client's synchronization group settings are ignored.

After a client subscribes, you can view their subscriptions on the Devices tab and make manual modifications to them as needed.