ground-android
ground-android copied to clipboard
Manually disabling location permissions then reopening app puts app in non-loaded state
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
- Ensure app has location permissions, click on a survey.
- While in the survey map view, before clicking on "Collect", go into app settings and remove location permissions.
- Then re-open the app using the "Open" button on the settings.
- 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
@jcqli for triage
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.