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

How far back will restore: true go when replaying missed messages?

I have an app with both a hybrid mobile version and a web version. When the hybrid mobile version loses connection (say, the phone is turned off while traveling), I want it to replay all the missed Pubnub messages.

the restore: true option available in the subscribe() method seems perfect, but I'm not sure how far back in time it will go. What if I have a user who turns off her phone for a week long hiking vacation? Would it reply a weeks' worth of messages?


Hey Brad, according to Craig's answer in another thread, messages will be restored for up to one day.

We recommend PubNub history to store messages for a longer duration.


Login or Signup to post a comment