DHIS2 Android App hehaviour & How "Download limit" in Android settings will affect search data for programs

Greetings @dhis2-android experts and community,

I’d like to understand the behavior of the DHIS2 Android app’s tracker data entry in the following scenario:

We have a tracked entity with 5,000+ events for a given org unit and program. We currently have the download limit in Android set to 2,000 (since anything higher triggers a warning).

If a patient exists on the server but has not yet been downloaded to the DHIS2 Android device, and I search for that patient — will the app still fetch the data directly from the server if there is internet connectivity ?

Hi @jthomas!

Short answer is yes. If you have internet connectivity the app will search the server for patients that are not yet downloaded to the local device. When you select the record, the downloads starts and then you can view/edit.

The search flow should work as follows:

  1. Local search first: The app searches the local database on the device (no internet needed).
  2. Online search second: If the device is online and within the user’s organisation unit search scope, the app also queries the server transparently. Results found online are displayed to the user typically after the local results.
  3. Download on selection: For TEIs found online but not yet on the device, the user selects the record and the full record is downloaded to the device so it can be viewed and updated.

If the device has no internet connection, the app can only search the local database. If the patient has not been downloaded to the device, the app will report that no record is found.

A note on the “Maximum event downloads”. This setting does not include events belonging to Tracker (TEI based) programs.

  • TEI download limit controls how many Tracked Entity Instances are downloaded, and all events associated with those TEIs are included automatically, they are not counted against the event limit.
  • Event download limit applies only to event programs (programs without registration)

We are currently working on a setting to limit the amount of events in tracker programs. You can follow this ticket: Jira

Thanks @nancyesp very helpful and grateful for this information.