Giter VIP home page Giter VIP logo

Comments (7)

jbalidiong avatar jbalidiong commented on May 23, 2024

Hi @ptahchiev, thanks for bringing this to our attention. I tried replicating, but I wasn't able to reproduce the error. If I can replicate the issue, I can have a better look into it. Please share a minimal, but complete sample of a project that I can run locally.

from firebase-js-sdk.

DellaBitta avatar DellaBitta commented on May 23, 2024

Just checking to ensure that your code is correct.

Are you invoking if(isSupported()) or just checking if it's defined if(isSupported). Looks like the latter is in the test case above.

Thanks!

from firebase-js-sdk.

ptahchiev avatar ptahchiev commented on May 23, 2024

Here's a reproducible site:
https://ptahchiev.github.io/test-firebase/
with repository:
https://github.com/ptahchiev/test-firebase/
and result:
image

from firebase-js-sdk.

jbalidiong avatar jbalidiong commented on May 23, 2024

Thanks for the minimal repro, @ptahchiev. I was able to replicate the behavior. Let me check what we can do for this issue or bring someone here that can provide more context about it. I’ll update this thread if I have any information to share.

from firebase-js-sdk.

hsubox76 avatar hsubox76 commented on May 23, 2024

I'm not able to get an iOS emulator running at the moment to repro this, but I think the problem is that isSupported() is an async function, so you would have to do if (await isSupported()). In your sample code, the value of isSupported() isn't actually true, it's a promise, which is truthy, which always causes your if to pass. If you logged the value of isSupported() instead of the string "isSupported() is true", this would show up.

Can I ask what documentation guide or tutorial you used for adding isSupported()? I want to make sure we didn't make a mistake and we add await if needed.

from firebase-js-sdk.

SteveKennedy avatar SteveKennedy commented on May 23, 2024

Just dropping in to say I have same issue. I am using await isSupported(). And get same exact experience as OP. My only difference is I am using 10.11.0.

from firebase-js-sdk.

hsubox76 avatar hsubox76 commented on May 23, 2024

Can you provide a repro like the original poster did?

from firebase-js-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.