cordova-plugin-firestore | Google Firebase Firestore plugin to enable realtime | Database library
kandi X-RAY | cordova-plugin-firestore Summary
kandi X-RAY | cordova-plugin-firestore Summary
From the Google documentation (Cloud Firestore is a flexible, scalable database for mobile, web, and server development from Firebase and Google Cloud Platform. Like Firebase Realtime Database, it keeps your data in sync across client apps through realtime listeners and offers offline support for mobile and web so you can build responsive apps that work regardless of network latency or Internet connectivity. Cloud Firestore also offers seamless integration with other Firebase and Google Cloud Platform products, including Cloud Functions.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Handle a collection snapshot
- Process a query
- Returns the metadata changes from the options options
- Handle a document snapshot event
- Get the metadata changes from the options options
- Handle a batch document
- Converts a JSON document into a SetOptions instance
- Handle a transaction
- Initialises the firestore
- Set the log level
- Handle resolved resolution
- Handle a batch document deletion
- Handles a batch commit
- Handle a transactional document
- Handles a transactional document deletion
- Handles a single document update
- Handle a single document
- Handles a transactional document update
- Handle query from collection
- Initializes the error map
- Handles a transaction
- Handle a document
- Applies a where clause to the query
- Initialize handler
cordova-plugin-firestore Key Features
cordova-plugin-firestore Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-plugin-firestore
QUESTION
I'm trying to build an app with Cordova where I want to connect a Google Cloud Firestore database.
I use the Cordova Firestore Plugin and followed the installation steps (add google-services.json, install dependencies etc.). To learn how the plugin is used, I build my app and connect it with Chrome DevTools to play around with the console.
When I try to get data from firestore via console like explained in the example of the plugin, I always get the following error:
Attempt to invoke virtual method 'com.google.firebase.firestore.CollectionReference com.google.firebase.firestore.FirebaseFirestore.collection(java.lang.String)' on a null object reference
I googled on that and found hints to change the version of com.google.gms:google-services
to minimum 3.1.1
.
What can I do?
...ANSWER
Answered 2019-Feb-26 at 17:40Actually I faced the same issue and found a solution here:
https://github.com/ReallySmallSoftware/cordova-plugin-firestore/issues/11#issuecomment-453435050
By commenting out config{}: that makes both browser and android platforms work (not tested on iOS yet)
Here the updated example:
https://github.com/ReallySmallSoftware/cordova-plugin-firestore/issues/13#issuecomment-467531402
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-plugin-firestore
Download google-services.json to (your_project_dir)/google-services.json. Hint: Get a config file for your Android App.
Download GoogleService-Info.plist to (your_project_dir)/GoogleService-Info.plist. Hint: Get a config file for your iOS App.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page