You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Here is the screenshot of the same error but with javascript code beautifier:
The text was updated successfully, but these errors were encountered:
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
@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?
[REQUIRED] Describe your environment
[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:


Here is the screenshot of the same error but with javascript code beautifier:
The text was updated successfully, but these errors were encountered: