cordova-plugin-firebase-sdk | Cordova plugin for the Firebase SDK | Mobile Application library
kandi X-RAY | cordova-plugin-firebase-sdk Summary
kandi X-RAY | cordova-plugin-firebase-sdk Summary
Cordova plugin for the Firebase SDK
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Executes the given action
- Initialize the app
- Converts the given value to a JSON object
- Converts JSON object to a map
- When a new intent is sent the google app
- Sends a notification
- Initializes the MessagingComponent
- Send the current user
- Convert a FirebaseUser to a JSON object
- Convert UserInfo to JSON object
- Build the value listener
- Remove a listener from the query
- Process data snapshot
- Clears all components
- Resets all listeners
- Event handler method
- Send a notification
- Launch notification
- Builds the child event listener
- Build query options
cordova-plugin-firebase-sdk Key Features
cordova-plugin-firebase-sdk Examples and Code Snippets
Community Discussions
Trending Discussions on cordova-plugin-firebase-sdk
QUESTION
I have a Cordova/Android/Firebase app and want to use setPersistenceEnabled
for better offline support. However, I notice that the relevant FB documentation page for JS omits any mention of setPersistenceEnabled
(although it's there on the Android page, and it is not present in the typings file.
When researching this problem I ran across the Cordova plug-in for Firebase, which does show an example of using setPersistenceEnabled
. However, up to now I have been using Firebase database just fine in my app without this plugin. What additional functionality does this plug-in provide, and how is using it different from using Firebase database calls "natively" from my Cordova app? If I decide to use this plug-in in order to gain access to setPersistenceEnabled
, will there be any problem if I continue to use the JavaScript SDK elsewhere as I am now?
ANSWER
Answered 2017-Jul-16 at 13:57I'm the author of the Cordova plugin you referenced. It basically allows to use the native SDK on a Cordova app instead of using the JavaScript SDK. That being said, I strongly suggest NOT to use it since it was mostly just an experiment and it's definitely not ready for production, plus it only supports Android at the moment.
On the other hand, there's currently an ongoing effort to add persistence support to the JavaScript SDK which will make the plugin unnecessary anyway. I'm not sure when (or if) that feature will be added to the SDK but you can keep track of the progress on this Github issue: https://github.com/firebase/firebase-js-sdk/issues/17
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install cordova-plugin-firebase-sdk
You can use cordova-plugin-firebase-sdk like any standard Java library. Please include the the jar files in your classpath. You can also use any IDE and you can run and debug the cordova-plugin-firebase-sdk component as you would do with any other Java program. Best practice is to use a build tool that supports dependency management such as Maven or Gradle. For Maven installation, please refer maven.apache.org. For Gradle installation, please refer gradle.org .
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