generated from StanfordSpezi/SpeziTemplateApplication
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
bugSomething isn't workingSomething isn't working
Milestone
Description
Description
we select a firebase environment based on the region selected during the initial onboarding. this firebase environment selection is persisted to disk, as a UserDefaults entry. this allows us to load the correct environment on subsequent launches
issue: when someone logs out of their account, we present the onboarding again, as part of which they get to select a region again
- but: if the app hasn't been killed since logging out, firebase is still configured for the region they were logged in to
- meaning: that we can't actually allow them to switch to a different region, unless they terminate and re-launch the app first
- technically, it might be possible to un-configure firebase in the iOS app, but that'd be very much a non-trivial undertaking since we'd need to somehow coordinate unloading firebase itself as well all Spezi modules that depend on it and were loaded as part of configuring firebase, and some of these modules (as well as MHC itself) currently operate under the assumption that firebase is only ever loaded into the app, but never goes away
Reproduction
- log in
- log out
- select a different region than you selected initially
Expected behavior
we need to either:
- add the ability to dynamically unload firebase, in a way that it can be re-enabled when the user goes through the onboarding, OR
- keep track of the fact that the app is in a logged-out-but-still-firebase-enabled state, and somehow communicate this to the user (ie, that they need to force-quit and relaunch the app if they wish to change eg from US to UK)
Additional context
No response
Code of Conduct
- I agree to follow this project's Code of Conduct and Contributing Guidelines
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working
Type
Projects
Status
Todo