-
Notifications
You must be signed in to change notification settings - Fork 892
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
FR: Safari Push Notification Support (via APN) #1423
Comments
+1 |
6 similar comments
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 |
+1 This is really needed, still doesn't work in Safari 13 |
+1 can we use any third party notification which interact with FCM? |
Just wondering if there are any updates on this issue as it seems to be completely silent except from users of Firebase. |
Would love an update on this, this is sorely needed |
+1 |
1 similar comment
+1 |
Same here, it's a big turn down for us, it represents 27% of the Market Share on mobile, and 3% on desktop. Ignoring Safari on mobile is definitely not an option in our PWA. |
@andreasanta You mention Safari on iOS but even Apple's own APN push notifications only work on macOS currently. There is no support for push messages in Safari on iOS. No amount of money, development will change that unless Apple deems it worth the time to implement. That said: I'd love Safari on macOS support so consider me /subbed |
@rejhgadellaa So unfortunately true! I thought APN would work on Safari iOS. Apparently, Apple is still determined to restrict core functionality to Apps, so they can cash in a while longer on the App Store purchases. You're right, nothing can change that unless they open the functionality to PWAs. |
YUP, lack of iOS support truly sucks. But I'm pretty sure that when it is finally introduced by Apple - it will be implemented in FCM, won't it? |
+1 |
I'm sure native iOS support is coming. Meantime, macOS support would be nice. |
+1 |
1 similar comment
+1 |
I'm at a bit of a loss here. I did what I thought was my due diligence to recommend FCM to a client. Only after finding the Checking the WebKit feature roadmap there are no indications that Apple will ever support the Push API. This is 100% in Google's court to implement. There's no point in playing Push API chicken with Apple anymore. We are already fully prepared to tool up for APN certs for our mobile app, I see no reason why we, as Firebase customers, should be expected to ignore macOS Safari for this feature. I have no idea if this is a political move or not, but either way I don't think we should be left out in the cold here. |
Is there any progress on this? Increasingly important with Flutter web, and no word for almost two years... |
Hey folks,
I'll keep the thread posted on any updates. |
@neekey I assume you are targeting Mac OS Safari. Unfortunately, until this feature is released, you will need to find another way to push data payloads to your Mac OS Safari clients. But you probably know you could already do it to other browsers with the FM SDK with the caveat that you can't silent push. |
Is there any update for this issue? |
+1 🤓 |
1 similar comment
+1 🤓 |
Hi folks, thanks for the patience. update:
|
the transparency is.. incredible. Thank you |
Way better to wait years for something that takes years, instead of waiting months for something that takes years. The transparency gives you what you need to make decisions, which is all we can ask for |
You're right, that was super unfair of me. This is a valuable feature but it should be done right, and systems work is worth its weight in gold over time. I hope the team gets the staff they need <3 |
Howdy, we're now in Q4 of 2022, @zwu52 would you mind posting another update? |
@zwu52 Hi, if you could give us an update would great. Thank you :) |
i'm waiting for update |
The FCM quick start app runs background notifications successfully for me on Safari 16.2 with macOS Ventura. macOS 13 Ventura (released Oct 2022) is the minimum requirement according to Apple's documentation. Related: #6620 |
@sman591 What about iOS? Could you check it? |
Boy, was I wrong. Apple did implement Push API! |
@huksley Apple's documentation only mentions macOS for Web Push |
any news? |
I tried firebase messaging v9.16.0 in my app also (Safari 16 macos Ventura 13.1) and it seems to work in background (when delivered by the service worker) but in foreground only receives notifications 3 times, then it stops working. Is this a "normal" behavior for some reason? |
Also, i tested on iOS and i don't understand how can you try the experimental Push API in Safari 16 iOS, since the Notification.requestPermission() function doesn't even exist? https://developer.mozilla.org/en-US/docs/Web/API/Notification/permission |
You mean this |
Exactly, iOS doesn't have that at 16.2 from what i tested. Or do we have at least a substitute for iOS? |
Web Push for Safari is currently only available on macOS 13.x. ( Even though you can install the latest Safari on macOS 12, that version will not have Web Push because their implementation requires the OS update. It relies on some new system service (yes, really...) ) For iOS and iPadOS, Web Push support will come in 2023: |
Yes, i actually connected to the ios 16 simulator Safari console and checked the JS APIs. PushManager is there (and other Push API classes) but Notification is missing (needed for Notification.requestPermission). Also navigator.permissions.query throws exception for name: "notifications". Maybe the boys at safari still need a bit more time to finish the user prompt popup for asking permissions... |
Hi guys. Checking the browser |
+1 would be awesome to get! |
Have you found a solution for this? I have the same Problem. |
no, no solution has been found. I did it with APNs without the participation of firebase |
HI @NataliaTsoy , how it is behaving on iphone 13 or safari version 7 to 13. |
We're almost half a decade later now... |
Circling back to the thread, https://firebase.blog/posts/2023/08/fcm-for-safari/ provides some info on how to push to ios safari |
It doesn't work in Safari 17.4 anymore (tested on MacOS, but i believe iOS also won't work). It was working fine from Safari 16.3 to 17.3. I posted details here, in case anyone is experiencing the same issues: https://stackoverflow.com/questions/78323312/firebase-cloud-messaging-web-issues-in-safari-17-4 |
Any plans on supporting the Safari Push Notifications (implement APN handling and conversion to FCM keys)?
https://developer.apple.com/notifications/safari-push-notifications/
The text was updated successfully, but these errors were encountered: