The Firebase JS SDK is now in BETA!
This EAP site is no longer maintained. See the official Firebase Documentation site for the latest documentation and information about the Firebase JS SDK.

Home > @firebase/analytics > isSupported

isSupported() function

This is a public static method provided to users that wraps four different checks:

  1. Check if it's not a browser extension environment. 2. Check if cookies are enabled in current browser. 3. Check if IndexedDB is supported by the browser environment. 4. Check if the current browser context is valid for using IndexedDB.open().

Signature:

export declare function isSupported(): Promise<boolean>;

Returns:

Promise<boolean>