element-hq / hydrogen-web

Lightweight matrix client with legacy and mobile browser support
Apache License 2.0
643 stars 124 forks source link

Add web notifications for iOS #1088

Open jasikpark opened 1 year ago

jasikpark commented 1 year ago

Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]

I would like to receive notifications from Hydrogen on iOS if I've enabled it.

Describe the solution you'd like A clear and concise description of what you want to happen.

Fix the implementation of notifications to support iOS Safari 16.4

Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.

Additional context Add any other context or screenshots about the feature request here.

https://developer.apple.com/documentation/usernotifications/sending_web_push_notifications_in_web_apps_safari_and_other_browsers

jasikpark commented 1 year ago

currently on iOS, it does prompt for permission and render the current "granted" state correctly, but the worker/notif service doesn't seem to run