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

App crashes if you try to launch it as a newly created user (if phone internet is off) #3224

Open MargaretNjenga opened 2 months ago

MargaretNjenga commented 2 months ago

Describe the bug The app crashes if you create a new user on FHIR Web and log in with the newly assigned credentials if phone data/internet is off.

To Reproduce Steps to reproduce the behavior:

  1. Create a new user (either Bidan, Immunizer or Cadre) on FHIR Web
  2. Turn off wifi on your test phone
  3. Clear data on the app (Bidan/Immunizer/Cadre App)
  4. Click on the app icon to start
  5. Notice that the app crashes and does not launch if internet is off.

Expected behavior

Smartphone (please complete the following information):

dubdabasoduba commented 2 months ago

@MargaretNjenga I have some of questions for you