Tracker Data Entry Issue – Character Auto-Delete/Replace in Android App

Hi all,

Our field team is reporting issues when entering data into specific fields. Every time the app internally validates a character that has been entered, it is automatically deleted.

We haven’t been able to reproduce the issue, and neither has the field support team. Has anyone experienced something similar or seen this behavior before?

What’s particularly strange is that the issue started suddenly, with no apparent configuration changes, and it only affects a specific set of data fields. Some are attributes, while others are data elements within a particular program stage. Some have program rules assigned and others don’t, so there doesn’t seem to be any obvious pattern.

The issue occurs both online and offline, and on all the devices they use (tablets and phones), but not in the web environment. They’re using Android app version 3.4.1 with DHIS2 version 2.40.7.1. Most users are on Android 11, although some are using Android 13 and at least one device is running Android 16.

Any insights would be greatly appreciated.

Thanks,
Pablo

Hi @pma

This seems similar to an issue we had before but it was fixed, see: Jira

Is there by any chance you’d be able to reproduce this issue in any of the play.dhis2.org instances? If so kindly share the steps to reproduce.

Thanks!

Hi @Gassim

Thank you for your response.

Unfortunately, we still haven’t been able to reproduce the issue. In fact, we received one of the devices they use in the field, but we still can’t get it to behave in the same way, which is quite strange.

Regarding the Jira ticket you mentioned, it is similar, but in this case it is Tracker and the entire content is not deleted. Only the last character entered is removed (and not always), after the application “thinks” for a moment and locally saves what is being typed.

We’re still investigating to try to figure out what is going on.

Thanks!
Pablo

Hi Pablo,
This actually sounds familiar, and the fact that it happens only in Android Capture, both online and offline, across different devices, while the web app works normally, makes me suspect the Android UI layer rather than the metadata or program configuration. There has been quite a bit of UI migration in the recent Capture releases to Compose Multiplatform, and there have already been some regressions in that layer. What you’re describing sounds potentially like a Compose recomposition/IME interaction: if validation runs as the user types and triggers a state update while the keyboard is still composing the character, the recomposition can interfere with the composing text and cause the character to disappear. That would also explain why you’re seeing it across both attributes and data elements, with or without program rules.

I’d first check whether the affected fields have anything structural in common — particularly text/long text value types, regex/pattern validation, or other input-specific configurations. On one affected device, try switching keyboards or disabling predictive text; if the behaviour changes, that would be a pretty strong indication that the IME/input handling is involved. I’d also test the exact same metadata on 3.4.0 versus 3.4.1 if you can. If it works in 3.4.0 and breaks in 3.4.1, that gives you a very clean regression case.

If you can reproduce it reliably, I’d raise it with the Android team (ANDROAPP) with a short screen recording, the affected field configuration, app version, Android version, and ideally the exact characters/actions that trigger the deletion. Knowing whether every keystroke disappears or only particular characters would also be useful. My first suspicion here would be a client-side Compose/input regression rather than something in the DHIS2 configuration itself.

Hi @e4eDHIS2
It looks like the issue no longer occurs with the version 3.4.0 as suggested. They tested it across all the devices at the facility and were unable to reproduce the problem. Based on this, we can confirm the issue is resolved in this version and was related to the app’s latest update. We’ll let you know if anything changes going forward.
Thank you very much for your help!