Hello!
I've been using iOS's new Web Push support for progressive web apps. I am running into an issue where any state I store in the service worker (via postMessage from the main thread) gets lost while the PWA is swiped away and not running in the foreground.
My use case is I when I receive the push notification, I want to use some of that state. It seems the service worker running in the background loses context of that state. I tried working around this via Cache Storage and IndexedDB but those also seem to be lost. I was wondering if anyone has a good way to store state while the PWA app isn't in the foreground?