opensrp / fhircore

FHIR Core / OpenSRP 2 is a Kotlin application for delivering offline-capable, mobile-first healthcare project implementations from local community to national and international scale using FHIR and WHO Smart Guidelines on Android.
https://smartregister.org
Apache License 2.0
50 stars 39 forks source link

Initial Sync stalls when app is running in the background #3341

Open ndegwamartin opened 1 week ago

ndegwamartin commented 1 week ago

Apk Vesrion - opensrp-dc-clinic-v0.0.5.apk Device: SM-T380 Android Version - 9

Issue Description Initial Sync is stalling when the app is pushed to the background. On reopening the app, sync does not progress to completion. It remains stuck at the percentage it was at when the user switched to another app. There are no errors recorded in the logs

Steps to reproduce

  1. Clear the app's data
  2. Initialize a new login session by entering the app ID
  3. Log into the app and Set Pin
  4. After initial sync starts, switch to a different app

Expected Results

ndegwamartin commented 1 week ago

Original Ticket : https://github.com/ona-health/hisp-wdf-fhir-resources/issues/362