Skip to content

firebase-messaging.js broken on iOS Safari 9 #1228

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

Closed
dimanux opened this issue Sep 15, 2018 · 3 comments
Closed

firebase-messaging.js broken on iOS Safari 9 #1228

dimanux opened this issue Sep 15, 2018 · 3 comments

Comments

@dimanux
Copy link

dimanux commented Sep 15, 2018

[REQUIRED] Describe your environment

  • Operating System version: iOS 9.3.5 / iPad 2
  • Browser version: Safari
  • Firebase SDK version: 5.5.0
  • Firebase Product: messaging

[REQUIRED] Describe the problem

I included firebase-app.js and firebase-messaging.js at index.html. The firebase-app.js script was loaded ok, but firebase-messaging.js has error "Strict mode does not allow function declarations in a lexically nested statement". Here is the screenshot of the error from MacOS Web Inspector:
macos 10 13 high sierra_15_09_2018_17_03_16
Here is the screenshot of the same error but with javascript code beautifier:
macos 10 13 high sierra_15_09_2018_16_37_41

@Feiyang1
Copy link
Member

It's the same issue as #931 . Closing this one.

@ecreatures
Copy link

We're using firebase messaging with version 5.5.4 in a vue project and Safari 11.1.2 is broken also.
The erros raised is :
"FirebaseError: Messaging: This browser doesn't support the API's required to use the firebase SDK. (messaging/unsupported-browser)."
=>and a blank page is displayed
Same error on Safari IOS

@Feiyang1
Copy link
Member

@ecreatures It looks like a different issue. Firebase messaging does browser compatibility checks before initializing itself, Safari 11.1.2 is probably missing some feature messaging requires. Can you please open a new issue, so I can route to the appropriate person to answer your question?

@firebase firebase locked and limited conversation to collaborators Oct 16, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants