The community forums are in BETA and closed to the public.

Corona SDK; how do I "page" through history.

I am using corona (lua) to build an app.

I understand that the pubnub history call only returns a max of 100 messages. Well, I need to go farther back than that. I need to see thousands of past posts. I've done some research and there are solutions for java, that involve setting the start and end time - to get a "slice" of the history.

However, how can you do the slice method with corona sdk?

Corona history looks similar to JavaScript history API. See Paging Through History example and make the call recursive. You will need to use the detailedHistory API in Corona.

It is almost certain that you will get the start and stop date parameters backwards (as most do) so keep that in mind if you are getting the results you are expecting. And ask more questions as needed.

Login or Signup to post a comment