ground-android icon indicating copy to clipboard operation
ground-android copied to clipboard

Manually disabling location permissions then reopening app puts app in non-loaded state

Open sufyanAbbasi opened this issue 1 year ago • 1 comments
trafficstars

Describe the bug By manually removing app permissions and revisiting the app, the app doesn't load any data for some reason, even when the network is on.

To Reproduce

  1. Ensure app has location permissions, click on a survey.
  2. While in the survey map view, before clicking on "Collect", go into app settings and remove location permissions.
  3. Then re-open the app using the "Open" button on the settings.
  4. See that app is in a weird state where nothing is loaded.

Expected behavior App is loaded but with no location set.

Actual behavior

  • No surveys or data are loaded.
  • No user data is loaded in the sidebar menu.

Screenshots

Screenshot 2024-03-12 at 3 58 43 PM Screenshot 2024-03-12 at 3 55 53 PM Screenshot 2024-03-12 at 3 55 58 PM

sufyanAbbasi avatar Mar 12 '24 23:03 sufyanAbbasi

@jcqli for triage

gino-m avatar Mar 13 '24 02:03 gino-m

Upon further investigation, I found that StartupFragment isn't called when opening the app as per above instructions. Due to that, firebase authentication isn't properly setup and all coroutines which depend on current user e.g. fetching surveys, loading user info etc get stuck indefinitely.

shobhitagarwal1612 avatar Apr 07 '24 07:04 shobhitagarwal1612