Returning to the app
Table of Contents
Bolt has relatively simple behaviour to determine what happens when a user returns to the app after it's been in the background.
1. Bolt will always try to return the user to exactly where they were when they closed it, including context such as the navigational stack. This is true regardless of how long the app has been in the background.
2. This is a best effort attempt, and certain uncommon things can prevent this from happening, such as the app being upgraded to a newer version. In this case the user will be returned to the first tab.
3. If the app is force quit we will clear the user's state and return them to the first tab.
Editions
Additionally, we've added behaviour to always preserve a user's position inside an edition. This means that if they were part-way through an edition and then navigate elsewhere in the app, when they return to that edition we'll take them back to the page they were on when they left. This is true of editions which do not have a table of contents.
Scroll Position
As of version 4.2, Bolt also persists the user's vertical scroll position within an article, which is particularly useful for longer articles a user is unlikely to finish in one session. This is remembered even if a user leaves, reads other content elsewhere in the app and then returns to the unfinished article.
Note that certain elements that change the length of an article, such as ads, can interfere with this behaviour. Furthermore, certain content on Android does not abide by this behaviour, we're working to identify and fix this, but please raise with support@pugpig.com if you notice this.