google / android-fhir

The Android FHIR SDK is a set of Kotlin libraries for building offline-capable, mobile-first healthcare applications using the HL7® FHIR® standard on Android.
https://google.github.io/android-fhir/
Apache License 2.0
486 stars 287 forks source link

Patients/Resources are not downloaded after internet it connected #1156

Closed PallaviGanorkar closed 2 years ago

PallaviGanorkar commented 2 years ago

Describe the bug launch the app first time when internet is not connected, data sync with server fails , now turn on the internet and get app in foreground. App shows empty patient list and also does not perform sync with server though there is no data in database Component Core library, reference app

To Reproduce Steps to reproduce the behavior:

  1. Turn of the device internet
  2. Install and launch the Demo App
  3. Automatic sync with server fails first time
  4. Now open device setting and turn on the internet
  5. now get the app in forground
  6. See behavior - there is no synch operation performed though there is no data available in database and patient list is empty

Expected behavior As there is no data in database sync operation must performed once internet is on and app comes in foreground.

Smartphone (please complete the following information):

PallaviGanorkar commented 2 years ago

Issue is fix under PR https://github.com/google/android-fhir/pull/1166

Tracked issue in https://github.com/google/android-fhir/issues/1164