firebase-js-sdk icon indicating copy to clipboard operation
firebase-js-sdk copied to clipboard

firebase-messaging.js broken on iOS Safari 9

Open dimanux opened this issue 8 years ago • 3 comments

[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

dimanux avatar Sep 15 '18 14:09 dimanux

It's the same issue as https://github.com/firebase/firebase-js-sdk/issues/931 . Closing this one.

Feiyang1 avatar Sep 21 '18 18:09 Feiyang1

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 avatar Sep 27 '18 16:09 ecreatures

@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?

Feiyang1 avatar Sep 27 '18 16:09 Feiyang1