-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firestore collection object isn't working right #11
Comments
note that creating the collection object works fine, this error appears on both 'add' and 'get' functions.
I have this working using the javascript API, but having issues with the web ui for auth, so wanted to use your nice firebaseui plugin which works great! Thanks for any help. |
Taking your first example, is the code structured exactly like that? Are you sure the promise has been satisfied before it gets to the add line? For testing purposes could you try this? Firestore.initialise(options).then(function(db) { |
The promise seems to return resolved right away - but I'll try that, it's good to be sure of that obviously. I appreciate your help! I'll try it first thing in the morning and close this out and kick myself it that's all it was. |
Hi , |
var options = { For Android/IoS applications , "config" key should not be present in the "options" JSON. If it is present code assumes it to be a web applications and works accordingly . After removing this key , app works fine. |
I believe the example may be wrong. Try this: window.db.get().collection('test').add({ "test": "value" }).then(console.log).catch(console.error); |
In add, as per comment above, "config" : {} needs to be comment out. |
Expected Behavior
Adding a record should work.
Actual Behavior
Throws error:
Steps to Reproduce the Problem
Using in chromium debug window attached to cordova webview instance on a phone. I've installed the plugins without issue.
Specifications
The text was updated successfully, but these errors were encountered: