dhis2_android_setup_sync
Configure and manage offline-first data synchronization for the DHIS2 Android app using flexible strategies, conflict resolution, and network conditions tailored to your needs.
Instructions
Configure offline-first data synchronization patterns for DHIS2 Android app
Input Schema
Name | Required | Description | Default |
---|---|---|---|
conflictResolution | No | Strategy for resolving sync conflicts | |
networkConditions | No | ||
progressTracking | No | Include sync progress tracking UI | |
syncScope | No | ||
syncStrategy | Yes | Data synchronization strategy |
Input Schema (JSON Schema)
{
"properties": {
"conflictResolution": {
"description": "Strategy for resolving sync conflicts",
"enum": [
"server_wins",
"client_wins",
"merge",
"user_prompt"
],
"type": "string"
},
"networkConditions": {
"properties": {
"backgroundSync": {
"description": "Allow background synchronization",
"type": "boolean"
},
"chunkSize": {
"description": "Data chunk size for syncing (KB)",
"type": "number"
},
"wifiOnly": {
"description": "Only sync on WiFi connections",
"type": "boolean"
}
},
"type": "object"
},
"progressTracking": {
"description": "Include sync progress tracking UI",
"type": "boolean"
},
"syncScope": {
"properties": {
"dataValues": {
"description": "Sync aggregate data values",
"type": "boolean"
},
"enrollments": {
"description": "Sync tracker enrollments",
"type": "boolean"
},
"events": {
"description": "Sync tracker events",
"type": "boolean"
},
"metadata": {
"description": "Sync metadata (programs, data elements, etc.)",
"type": "boolean"
}
},
"type": "object"
},
"syncStrategy": {
"description": "Data synchronization strategy",
"enum": [
"manual",
"automatic",
"scheduled",
"smart"
],
"type": "string"
}
},
"required": [
"syncStrategy"
],
"type": "object"
}