Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for iOS 16.4 beta webkit safari web push notifications #17

Open
hmkas opened this issue Feb 28, 2023 · 8 comments
Open

Add support for iOS 16.4 beta webkit safari web push notifications #17

hmkas opened this issue Feb 28, 2023 · 8 comments
Labels
enhancement New feature or request

Comments

@hmkas
Copy link

hmkas commented Feb 28, 2023

With the introduction of the long-awaited support for web push notifications in safari for iOS in the 16.4 beta 1 update will be able to work just as good on iPhones as on android devices.

However webkit has some requirements for it to work:

  • Web Push on iOS and iPadOS uses the same Apple Push Notification service that powers native push on all Apple devices. You do not need to be a member of the Apple Developer Program to use it. Just be sure to allow URLs from *.push.apple.com if you are in control of your server push endpoints.
  • A web app that has been added to the Home Screen can request permission to receive push notifications as long as that request is in response to direct user interaction — such as tapping on a ‘subscribe’ button provided by the web app.
@luke- luke- added the enhancement New feature or request label Mar 1, 2023
@luke-
Copy link
Contributor

luke- commented Mar 1, 2023

Thanks for the information, that is really very interesting and nice that we can soon offer push for IOS devices.

@Vander-Ng
Copy link

@luke- Hi Luke, any update on this?

@zrknlzr
Copy link

zrknlzr commented May 10, 2024

I tried looking into this as i need this feature for a bigger project with multiple Humhub instances too.

But it seems that the notification dialog is triggered by Humhub itself and this plugin has not much say in this. AFAIK this file is responsible for opening the browser API dialog on non-iOS platforms https://github.com/humhub/humhub/blob/b58125e818579b7549bbc0da67ea4dbf703eea19/static/js/desktop-notify-min.js

Webpush on iOS only works in a Progressive Web App ("Add to Homescreen") and needs to be triggered by the user within the web interface not the normal browser API dialog. Currently the browser API dialog just fires as soon as someone opens up the login screen so iOS just denies it by default i think.

@luke- The iOS version of the app is coming at some point i assume so this feature most likely won't get much priority?

@luke-
Copy link
Contributor

luke- commented May 10, 2024

@zrknlzr The IOS app should already have a working push notification support.


But it would be nice to have a button in the notification settings to ask for the permission for push notifications again.

@Vander-Ng
Copy link

@zrknlzr The IOS app should already have a working push notification support.

But it would be nice to have a button in the notification settings to ask for the permission for push notifications again.

Thanks Luke. Have you tried it? Is it working just like an iOS app notification? Can you share an article in Humhub community on how to enable it and how well it works? I think many members would like to know this, thank you.

@luke-
Copy link
Contributor

luke- commented May 13, 2024

Yes, the push notifications work with the https://github.com/humhub/app app and the FCM push module. No special configuration is required for IOS.

@zrknlzr
Copy link

zrknlzr commented May 14, 2024

@luke- Good news the iOS build is making progress. But as the iOS build isn't in the App Store yet and WebPush isn't working in the PWA there isn't really much we can do about getting Notifications on to users iPhones at the moment i guess. I would love to contribute to this but got no idea how to approach it?

@jannis6023
Copy link

Hi together, is there anything new in this topic here? We would love to use humhub, but push notifications are a must-have!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

5 participants