-
Notifications
You must be signed in to change notification settings - Fork 927
firebase-messaging.js broken on iOS Safari 11.1.2 #1260
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
Comments
I found a few problems with this issue:
|
Just importing firebase/messaging seems to cause this issue for me as well.. Is there a way to do it conditionally based on browser? update - actually importing didnt cause issue, actually trying to use messaging sdk did. solution
|
In theory Firebase messaging is supposed to manage the Safari not able to receive notification case, but in real life it does not. To avoid the Safari blank page, you need to trigger the user agent/browser condition in your code.
|
or just:
|
Messaging does not work on Safari, because Safari does not support Push API. You can check the compatibility table here. I'd suggest using if (firebase.messaging.isSupported())
const messaging = firebase.messaging();
} See the documentation for details on |
Thanks a lot @mmermerkaya ...it's really helpful.... |
Was this resolved? I'm getting the same error in Safari 12.0.2 |
Can someone explain why the Safari 12 web push notifications implementation cannot be added to FCM? We know it requires the annoying certificates from the 100-USD-a-year Apple Developers portal, but for those who have them, there should be an updated guide on how to implement it, rather than simply waiting until Apple decides to align with the rest of the browsers (if it ever does). If an experienced developer created a PR to support Safari 12, would this PR be approved and merged eventually to the FCM JS API? |
Unfortunately this requires more than just changes to this SDK. We also need to support APNs for web in the FCM backend. The feature request is being tracked here: #1423. There's no information that I can share yet, but that does not mean that we're not working on it. |
We're using firebase messaging with version 5.5.4 in a vue project and Safari 11.1.2 is broken : a blank page is displayed.
The error raised in the console is :
"FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)."
Same error on Safari IOS with iOS 11 and 12. Before integrating FDirebase messaging in our project all was working fine. We're currently using other Firebase services in our project and they work fine.
The text was updated successfully, but these errors were encountered: