Firestore instance has already been started and its settings can no longer be changed. #5071
bobby-white
started this conversation in
General
Replies: 1 comment 1 reply
-
Is this an appropriate solution? Seems to work... #import <RNFBFirestore/RNFBFirestoreCommon.h>
...
self.firestore = [RNFBFirestoreCommon getFirestoreForApp:[FIRApp defaultApp]];
...
[[[self.firestore collectionWithPath:collectionPath] documentWithPath:documentPath] setData:data]; Am I likely to run into any gotchas later down the road using this solution? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use Firestore natively with Obj-C, and with React Native.
I have a background process (which can be running while app is in foreground too) that I had to write natively, which periodically writes data to a collection in Firestore.
I also read data from Firestore in Javascript.
Both of these features work independently, but the read only happens in certain scenarios.
When I try to use firestore natively and in Javascript at the same time, I get the issue stating that:
Firestore instance has already been started and its settings can no longer be changed.
Is there any workarounds to this?
In Obj-c I am accessing Firestore using the Firebase SDKs directly, as follows:
Beta Was this translation helpful? Give feedback.
All reactions