Comments (7)
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.
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.
Here's a reproducible site:
https://ptahchiev.github.io/test-firebase/
with repository:
https://github.com/ptahchiev/test-firebase/
and result:
from firebase-js-sdk.
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.
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.
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.
Can you provide a repro like the original poster did?
from firebase-js-sdk.
Related Issues (20)
- Chrome extension Service worker "ReferenceError : XMLHttpRequest is not defined" Using firebase storage HOT 1
- Cannot invoke HttpsCallable functions on Safari HOT 5
- `User.getIdToken(true)` fails with quota exceeded HOT 1
- ID token docs say refreshes with 5 minutes buffer but seems to be 30 seconds HOT 2
- Document references from another DB cause error logs HOT 2
- Support offline memoryLocalCache persistence for node HOT 3
- Expo: Unable to resolve "./index.shared" from "node_modules/@firebase/auth/dist/index.rn.d.ts" HOT 2
- Upgrade from 9.10.0 to 10.11.0 leads to 46kB increase in bundle size HOT 3
- All remote config param values are not returned on App A but are returned on App B HOT 3
- Firestore experimentalAutoDetectLongPolling/experimentalForceLongPolling does not work as expected HOT 11
- FIRESTORE (10.9.0) INTERNAL ASSERTION FAILED: Unexpected state HOT 4
- getToken() for Push API, requires Notification API support HOT 6
- FIrebase Storage Offline is possible according to Gemini HOT 1
- getDoc() is never resolved nor rejected using Remix and Firestore Lite HOT 4
- App Check fails after returning to an inactive background tab
- FirebaseError: Missing or insufficient permissions. HOT 9
- FirebaseError: Messaging: We are unable to register the default service worker. Failed to register a ServiceWorker for scope ('http://localhost:3000/firebase-cloud-messaging-push-scope') with script ('http://localhost:3000/firebase-messaging-sw.js'): A bad HTTP response code (404) was received when fetching the script. (messaging/failed-service-worker-registration). HOT 6
- MISSING_OR_INVALID_NONCE : The nonce in ID Token does not match the SHA256 hash of the raw nonce in the request
- The accessToken property is missing in the User interface HOT 1
- Analytics Consent not sent on update HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from firebase-js-sdk.