Home > @firebase/analytics > isSupported
isSupported() function
This is a public static method provided to users that wraps four different checks:
- 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>