This will close #258, the bug the coaches pointed out during the last scrum retrospective.
To solve it, I moved the logic from the NavigationActions to the AppNavHost. This allows us to do the checks at application start. I added a loading animation to avoid blocking the app during the checks. This will close #105.
Note that as the authentication relied on the NavigationActions for navigating to the correct route (profile creation or map), there were some tests which broke. So I had to put some more logic into the authentication view models.
This will close #258, the bug the coaches pointed out during the last scrum retrospective.
To solve it, I moved the logic from the
NavigationActions
to theAppNavHost
. This allows us to do the checks at application start. I added a loading animation to avoid blocking the app during the checks. This will close #105.Note that as the authentication relied on the
NavigationActions
for navigating to the correct route (profile creation or map), there were some tests which broke. So I had to put some more logic into the authentication view models.