Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Keep read position in feed after refreshing #19

Closed
doug8888 opened this issue Jul 19, 2023 · 29 comments
Closed

Keep read position in feed after refreshing #19

doug8888 opened this issue Jul 19, 2023 · 29 comments
Labels
enhancement New feature or request

Comments

@doug8888
Copy link

Describe the problem

I like to read tweets in my feed in the order they are written. When the app is refreshed or closed and opened again the feed defaults to the top, the newest tweet. I then have to scroll down to find the position where I left off.

Describe the solution

Ideally the app would remember where I was in the feed and remain in that position after refreshing. This was an option in Twidere that I previously used. Thanks

@doug8888 doug8888 added the enhancement New feature or request label Jul 19, 2023
@Saroumane
Copy link

I was going to write this ! Squawker now works better than Twidere, excepted for this 'must-have' feature.

@zer0fl0w
Copy link

came here to suggest the same thing. nice to see ppl already aware of it too.

if it is possible to implement it would be a huge ux boost.

@Denny966
Copy link

Must have feature

@j-fbriere
Copy link
Owner

Version 3.2.0 implements this feature.
The feature is not activated by default. Must be activated in Settings / Keep feeds offset.

@zer0fl0w
Copy link

thanks a lot!

@Saroumane
Copy link

Version 3.2.0 implements this feature. The feature is not activated by default. Must be activated in Settings / Keep feeds offset.

Unfortunately that is not enough in 3.2.0
What is needed : "Ideally the app would remember where I was in the feed and remain in that position after refreshing."
What is done in 3.2.0 : "offset is kept for feeds when app restarts"

I just tested refreshing the feed : read position was lost and the offset was autoscrolled to the top (most recent) tweet.

In fact we need both : keeping offset position when app restarts or after a feed refresh.

@doug8888
Copy link
Author

Yes agree with the above comment. Refreshing the feed takes me to the top of the feed.

@Denny966
Copy link

Version 3.2.0 implements this feature. The feature is not activated by default. Must be activated in Settings / Keep feeds offset.

Unfortunately that is not enough in 3.2.0 What is needed : "Ideally the app would remember where I was in the feed and remain in that position after refreshing." What is done in 3.2.0 : "offset is kept for feeds when app restarts"

I just tested refreshing the feed : read position was lost and the offset was autoscrolled to the top (most recent) tweet.

In fact we need both : keeping offset position when app restarts or after a feed refresh.

Agreed, the feature doesn't do much at the moment

@j-fbriere
Copy link
Owner

j-fbriere commented Jul 30, 2023

What is the goal of refreshing?
It is to have newer tweets, right?
But then if you are not at the top to read the newer tweets then why do a refresh?

@Denny966
Copy link

What is the goal of refreshing? It is to have newer tweets, right? But then if you are not at the top to read the newer tweets then why do a refresh?

Yes it's to have newer tweets. The point is after a refresh I can continue reading my unread tweets where I left off the last time

@j-fbriere
Copy link
Owner

j-fbriere commented Jul 30, 2023

I'm still not sure what is your goal by doing a refresh.
If you could just explain your use case more in detail, it would help.

For me, if I want to read the unread tweets, I jut scroll up the feed, that's all.
No need top tap on refresh.
Eventually of course, when at the top of the feed, a scroll up will automatically do a refresh of newer tweets from Twitter/X.

Please explain in detail your use case.

@zer0fl0w
Copy link

zer0fl0w commented Jul 30, 2023

can confirm. feature does not work as supposed.

atm it is like that:

open app. feed gets refreshed.
you have to scroll down the timeline until the point where you last left or stopped reading. then you start scrolling up again until you are done with the new tweets or stop at a certain position.

it should be like that:

now the app ideally have to learn/know/remember what is/was the last tweet you read.
close app or even remove squawker from recents apps.
then when you come back to squawker, you open the app again after i.e. 6 hours. timeline gets refreshed, but does not jump to top. means you are not at top with your feed at latest tweet but instead on the position/tweet where you last stopped reading or quit the app.

hopefully it is comprehensible in the words i used.

thanks for reading.

@Saroumane
Copy link

To say it in another way : the read position/offset should only change when the user use his finger to manually scroll the feed.

Let's say the feed is a book. New tweets are new pages of the book, added at the end. The read position/offset is the current page number the user is reading.
The user never wants the current page number to jump to the end of the book.

@zer0fl0w
Copy link

that hit deep. on point description. thx.

@j-fbriere
Copy link
Owner

j-fbriere commented Jul 30, 2023

atm it is like that:

open app. feed gets refreshed.
you have to scroll down the timeline until the point where you last left or stopped reading. then you start scrolling up again until you are done with the new tweets or stop at a certain position.

That is not what the app v3.2.0 is doing.
Of course you have to activate the functionality in Settings / Keep feeds offset for the app to remember the past position in the feed timeline.

it should be like that:

now the app ideally have to learn/know/remember what is/was the last tweet you read.
close app or even remove squawker from recents apps.
then when you come back to squawker, you open the app again after i.e. 6 hours. timeline gets refreshed, but does not jump to top. means you are not at top with your feed at latest tweet but instead on the position/tweet where you last stopped reading or quit the app.

right now what it does is:

  • (first of course, be sure that the functionality is activated in Settings / Keep feeds offset.)
  • open the app, scroll down the feed.
  • close the app or put it in recent apps mode.
  • reopen the app, the feed goes directly to the remembered last timeline position.

The only difference with what you said is that on reopening the app it does not refresh the feed (meaning it does not request the more recent tweets from Twitter/X) before going to the remembered last position of the timeline. It goes directly to the remembered last position of the timeline.

My question: Why is it wrong?
From that remembered last position of the feed, you can decide to scroll down to get older tweets or scroll up to get newer tweets. What I am missing here?

@doug8888
Copy link
Author

Just tried it. Opened the app and I was in the feed position I got to earlier today. No tweets above were showing so I refreshed the feed by pulling down on the screen. The new tweets were loaded but I was then at the top of the feed (newest tweet) rather than down at the last tweet I read earlier. Had to scroll down manually to find my position.

@zer0fl0w
Copy link

zer0fl0w commented Jul 30, 2023

it is not wrong. it is correct but only partly. like the other people already mention it in this thread too.
i really appreciate your support and only try to be as understandable as possible.

regarding the "issue", because it does not act this way (at least for me) when you read all the tweets, and you are on top of the feed. close the app, swipe away from recents. wait some time. i check maybe 4-5 times a day. i normally read all the tweets and leave the app with no unread tweets, means feed is on top, no more scrolling down possible.

then after open the app again, i am on top again, but already with the newest tweets loaded. so i am on top of the feed with all the unread tweets. i am not at the position of the last read tweet which was the latest, before i quit the app.

dont know how to be clearer.
hopefully another one can describe it better.

@j-fbriere
Copy link
Owner

Thank you @doug8888 and @zer0fl0w.
Now I understand the issue.
I'll look into it.

@Saroumane
Copy link

For information, no change in 3.3.0
I opened the app today, I refreshed the feed, and was instantly auto-scrolled to the most recent tweet.

@j-fbriere
Copy link
Owner

j-fbriere commented Aug 4, 2023

Normal, I did not find a solution for this issue yet.
I'm still working on it.

@Saroumane
Copy link

Thank you so much for developping this project. Do you have a patreon ?

@j-fbriere
Copy link
Owner

Version 3.3.1 fixes the reload feed issue of this feature.

@zer0fl0w
Copy link

thank you. good work.
kinda works now as expected.
reading position gets losely remembered even after coming back to the before closed app and after autorefresh it will not automatically scroll to top.
feels good to me. never expected twitter reading would be possible again after the downfall e. created.
thanks to squawker it is somewhat usable again.
so, thank you. really looking forward and hoping your app will remain and continue working. thx.

@Saroumane
Copy link

Saroumane commented Aug 10, 2023

Version 3.3.1 fixes the reload feed issue of this feature.

I confirm it works. It's a bit strange to see the feed going top when refreshing, and immediately going down, back to the memorized position, but that's only cosmetic. In the end, it works !

@doug8888
Copy link
Author

Good work, thanks for doing it.

@Denny966
Copy link

Works really well, nicely done!

@j-fbriere
Copy link
Owner

Closing this issue.

@Saroumane
Copy link

Saroumane commented Aug 11, 2023

Upgraded to 3.3.2 and it seems it does not work anymore.
I just opened Squawker and was set on the most recent tweet.

Edit : it works again. So I'm not sure. Maybe I previously missclick.

@igorzaks
Copy link

I'm on version v3.7.6+300014563 and it seems like sometime within the last few versions this feature regressed to only keeping my place on the feed between app restarts, but not through a refresh.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

6 participants