How to Persist User Navigation State Across Sessions

First, you could use an auto trigger AI Component on every screen so the app can save the current screen the user is on.

You can ask the component to trigger on load without all the prompt I provide.

Next, you could try to make a workflow that check if the user has a last screen value on his profile (or another table).

You can use a mix of this thread too:

Let me explain:

  • Create a new empty screen and move it on top to make it the first screen on the app.
  • Add a visibility condition on it so it is hidden if user isn’t signed in.
  • Hide from the nav. OR add custom CSS to your app using the first screen navigation item selector: set it to display:none;. That way, on login, user would be redirected to that screen. But after changing screen, they won’t be able to see and access a “redirector screen”.
  • Add another auto trigger custom AI Component to execute the “go to tab” action. Use the user profile last screen column that you used to save the current screen with auto trigger on every screen.

That’s it! :slight_smile:

If you need further help, don’t hesitate!

1 Like