Post

Replies

Boosts

Views

Activity

iOS Web Push - Passing in Icon Doesn't Work
Hey everyone, I did some extensive testing with sending a Web Push notification to my iOS PWA as well as MacOS Safari browser. The push itself works for those platforms but passing in the icon as specified in: https://developer.mozilla.org/en-US/docs/Web/API/Notification/icon does not work. It always just defaults to using the icon defined in the PWA's manifest instead. In the support matrix in the link above it says Safari is supposed to support this but it doesn't. I just wanted to get some second opinions to confirm that it's a known issue that it's broken? I know iOS Web Push was just supported fairly recently so I'm hoping this gets resolved in the future for us to pass in custom icons.
0
0
521
Nov ’23
Is there a way to persist state in an iOS Progressive Web App
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?
1
0
704
Aug ’23