Skip to content

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

@wira

Description

@wira
  • 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();

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions