lnreader icon indicating copy to clipboard operation
lnreader copied to clipboard

Preserve Reading Progress on App Restore from Background

Open RTAzis opened this issue 1 year ago • 3 comments

Describe your suggested feature

Description:

When the LNReader app is running in the background and gets terminated by the system, the app currently reopens to the default Library screen upon restoration. However, it correctly saves the progress of the currently read chapter.

Issue:

It would be beneficial if the app could not only save the reading progress but also restore the user to the exact entry they were reading, including the specific chapter and position within it, when the app is restarted after being killed.

Proposed Solution:

Implementing state restoration using the Android Saved State feature could address this issue. This would involve:

  1. Storing the Current Reading Entry: Save details of the chapter and current position when the app goes into the background or is about to be killed by the system.
  2. Restoring the Reading State: On app launch, check if there is a saved reading state and navigate the user directly to their last-read entry instead of the Library screen.

Benefits:

  • Improved User Experience: Users can resume their reading exactly where they left off, making the app more user-friendly and efficient.
  • Consistency: Maintains continuity and reduces frustration for users who might be interrupted by system resource management.

Other details

No response

Acknowledgements

  • [X] I have searched the existing issues and this is a new ticket, NOT a duplicate or related to another open or closed issue.
  • [X] I have written a short but informative title.
  • [X] If this is an issue with a source, I should be opening an issue in the sources repository.
  • [X] I have updated the app to version 2.0.0.
  • [X] I will fill out all of the requested information in this form.

RTAzis avatar Jul 20 '24 20:07 RTAzis

maybe.. Re-open app, click History, click the entry at the top. that's it. This feature reminds of the electric hammer, somehow.

Palloxin avatar Aug 20 '24 13:08 Palloxin

maybe.. Re-open app, click History, click the entry at the top. that's it. This feature reminds of the electric hammer, somehow.

I have an older phone with limited RAM, so every time I reopen the app, it starts at the home screen instead of where I left off. This adds a few extra steps to get back to my reading position whenever the reader closes unexpectedly.

For example, the Tachiyomi manga reader restores the previous session even after being terminated by the system, though it doesn’t save the exact scroll position within an image. If LNReader could implement a similar state-saving feature, it would enhance the user experience by making it easier to pick up exactly where we left off.

RTAzis avatar Nov 02 '24 07:11 RTAzis

Is this related to the app not saving position at all? (Or forgetting it in some cases that i haven't been able to find out)

warior456 avatar Jun 07 '25 08:06 warior456