- π¬π§United Kingdom 2dareis2do
What is the status of this?
From subscriptions tab I am definitely seeing the following endpoints with tokens:
https://web.push.apple.com
https://fcm.googleapis.com/fcm/send/
https://updates.push.services.mozilla.com/wpush/v2I have also seen safari, firefox and chrome notifications being posted to system notifications when using the test form (mac)
- π¬π§United Kingdom 2dareis2do
Ok it's possible I had already generated the token. This might explain why I saw this. Currently the issue in Safari is
Push notification prompting can only be done from a user gesture.
So it cannot seem to trigger the notification and set a token.
Possible work around
https://pushpad.xyz/blog/the-notification-prompt-can-only-be-triggered-b...
- π¬π§United Kingdom 2dareis2do
Uploaded rudimentry patch that allows notification to be set using user input as a fallback.
This works by clicking on the `navbar-brand__container` (which may or may not be available in your theme)
What is probably required is a modal window to display (they do something similar with advanced_pwa where they even support a modal window).
I have uploaded a screenshot. What this shows is that the apple push notification has been added. The first one was set by another module. the last one was set using this patch.
- π¬π§United Kingdom 2dareis2do
Uploaded another patch that targets `#navbar-main`instead and also logs a message when manually pushing after user gesture
- π¬π§United Kingdom 2dareis2do
Screenshot showing the latest safari registered token.