Data Rules

Overview

Data rules allow developers to determine programmatically (1) what data should sync to devices for offline access, and (2) what kind of read and write access a user should have to data (applies to online and offline access).

To define data rules, you need to understand the concept of data buckets:

Data Buckets

To limit data synched to devices, developers can specify sync rules. Read more about sync rules here:

Sync Rules - Limit data synced to devices

To limit user read/write access to data (whether that data is on the user's device or accessed via OnlineDB), developers can specify data ACLs. Read more about them here:

Data ACLs - Limit access to data

Data rules combine the above two objectives by letting developers specify both sync rules and data ACLs in one XML file, namely data_rules.xml, which is available in OXIDE once your app has data rules enabled.

Default data_rules.xml file

Last updated