Open marcpalmer opened 3 years ago
If you wanted to be conservative, you could use the time threshold AND a check if the most recent post was on a different day to the current day. e.g. for me I open it in the morning and it's still loaded, and it is showing posts from yesterday as the most recent. Pulling to refresh is pretty much guaranteed to get me more up to date posts.
Of course this isn't needed if you implement background refresh but this is probably easier / more efficient
I've wanted this feature for quite a while.
It helps when someone else requests it. 😀
On my Phone Stream is so lightweight it usually stays loaded. When I switch back to it ours later it is still in memory and showing a stale feed and I always have to pull to refresh.
I suggest using applicationDidBecomeActive to check if it was some period (say 8 minutes, a common magic timer in Apple apps) since the last feed refresh, and if so do an auto-refresh.
This would mean it was current a lot more often, and I'd see it refreshing when I switch back to it without having to pull.