I am currently working on the web-push notifications for a project and got a bit confused by the matter. I couldn't find any info on the topic, so please consider the following scenario:
- User subscribes for web-push notifications on m.example.com
- And then adds the page to home screen, e.g. installs PWA
So the questions are:
- Will the browser have the same
ServiceWorkerRegistrationandPushSubscriptionas the PWA? - Does the result change if the user first adds to home screen and then subscribe?
- Will the browser have subscription if the user subscribes via PWA?
ServiceWorkerRegistrationbut on iOS PWAs run in a different context. (Although iOS doesn't support push) - abraham