Update config when the session starts and ends #822
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
π² What
Updates config every time a user logs in or logs out (in addition to launching the app or coming back to the app from background).
π€ Why
We've noticed that the config would only refresh after the app has been backgrounded and brought back to foreground. This caused some confusion when logging in as a different user and logging out because the config wasn't properly updated unless the app was backgrounded and brought back to foreground again. This PR fixes that and should always make sure that the config is always up to date even without leaving the app.
π How
Very straightforward, please see the code.
β Acceptance criteria
In order to properly test this you'll have to observe your device connection with
mitm
tool likeCharles proxy
ormitmproxy
(there's a guru card with instructions on how to set this up).config
config
config
config