FirebaseError: Failed to get document because the client is offline

I found this error only on Andorid? Someone have same problem?

document is a browser API – it seems likely that Firebase is trying to run browser code in a non-browser environment (Expo), which is the root cause.

This problem happens only with firebase.firestore(), with firebase.database() it is working well.

The document referred is not window.document. Firebase error in Firestore Document.