Firebase firestore offline persistence is not working. getting following error.
Error enabling offline persistence. Falling back to persistence disabled: FirebaseError: [code=unimplemented]: This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.
Unhandled promise rejection: FirebaseError: This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.]
[Unhandled promise rejection: FirebaseError: This platform is either missing IndexedDB or is known to have an incomplete implementation. Offline persistence has been disabled.]
* [native code]:null in construct
- node_modules/@babel/runtime/helpers/construct.js:19:9 in _construct
- node_modules/@babel/runtime/helpers/wrapNativeSuper.js:26:22 in Wrapper
Per this thread IndexedDB is a web API not available in React Native… so we’d need to figure out if there’s a way to patch it in Firestore to replace it with one of the available stores.