← Back to Upcase

Get records created after the last request

(Charlieanna ) #1

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.

0 Likes

(Pedro Moreira) #2

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.

0 Likes

(Charlieanna ) #3

I was thinking of going with the timestamp thing.

0 Likes

(Pedro Moreira) #4

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”.

0 Likes