How long does Beacon store offline messages?

  • Question
  • Updated 4 years ago
I have a web app that stores data in localstorage as it is accessed. When something changes on the server, that change is pushed to client and the localstorage is updated.

Currently, I have to manually keep track of what the last message the user received was, so that I can play back the updates to a user since the last time their browser was connected, which could have been days ago.

I'm considering switching to Beacon Push for handling my push notifications, and I'm wondering, would the offline message support allow me to not worry about tracking messages received. In other words, would Beacon store all the notifications the user receives and push them down the next time they connect?
Photo of neil


  • 2 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of cgbystrom

cgbystrom, Product Manager

  • 331 Posts
  • 17 Reply Likes
Beaconpush stores undelivered message in a best-effort. Meaning, it is intended for securing delivery of messages when clients are disconnected temporarily, such as page reloads. Relying on Beaconpush storing a message that is more than 60 seconds old is not recommended. It would be best if your application code handled such persistent notifications.