I am getting the timeline of the posts of the user. But when the user pulls down the tableview I want to fetch the records created after the previous request.
Any idea how to implement this.
I am getting the timeline of the posts of the user. But when the user pulls down the tableview I want to fetch the records created after the previous request.
Any idea how to implement this.
That seems a bit tricky. An initial pass at it might be adding a param with the id of the last displayed record and offsetting the collection returned from there or maybe relying on some “last log in” timestamp and return content created after that.
I was thinking of going with the timestamp thing.
The thing about that is that an user might have not actually read that content before logging out… to be sure, you’d need a mechanism of “mark as read”.