firebase-messaging.js broken on iOS Safari 9
[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:
Here is the screenshot of the same error but with javascript code beautifier:

It's the same issue as https://github.com/firebase/firebase-js-sdk/issues/931 . Closing this one.
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?