Skip to content

Firebase-firestore.js cannot work on iOS Safari 9 #931

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
wira opened this issue Jun 15, 2018 · 4 comments
Closed

Firebase-firestore.js cannot work on iOS Safari 9 #931

wira opened this issue Jun 15, 2018 · 4 comments

Comments

@wira
Copy link

wira commented Jun 15, 2018

  • Operating System version: iOS 9.3.5
  • Firebase SDK version: 5.0.4
  • Firebase Product: app, auth, firestore

[REQUIRED] Describe the problem

Firebase firestore is not working on iOS Safari 9 because of an error in the firebase-firestore.js file. on console: Strict mode does not allow function declarations in a lexically nested statement.

Steps to reproduce: (in iPad)

  • Load the script
    `<script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-app.js"></script> <script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-auth.js"></script> <script src="https://www.gstatic.com/firebasejs/5.0.4/firebase-firestore.js"></script>`
  • Create firebase object
    firebase.initializeApp(firebaseConfig); const db = firebase.firestore();
@google-oss-bot
Copy link
Contributor

Hey there! I couldn't figure out what this issue is about, so I've labeled it for a human to triage. Hang tight.

@google-oss-bot
Copy link
Contributor

Hmmm this issue does not seem to follow the issue template. Make sure you provide all the required information.

@billyz313
Copy link

This is also true in:
safari 5.1 browser on windows 10 using firebase 5.1.0

firestoreerror

@Feiyang1
Copy link
Member

The issue has been fixed by #1239

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