
Security News
vlt Launches "reproduce": A New Tool Challenging the Limits of Package Provenance
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
cordova-firebase-plugin
Advanced tools
A cordova plugin that wraps the Firebase SDK with an easy to use api.
This plugin wraps the Firebase remote config, performance, analytics, crashlytics, messaging, and authentication SDK with an easy to use api and detailed documentation. Follow the below instructions for iOS setup and plugin use.
>=6.0.0 and <=8.1.2
>=4.0.0 and <=5.0.0
>=3.2.1
Install the above plugin dependency if you don't already have it installed. Place your Firebase configuration file (GoogleService-Info.plist) into the root folder of your project. View Firebase support for details on how to download the file if you did not download it in the above Firebase Setup.
- My Project/
platforms/
plugins/
www/
config.xml
GoogleService-Info.plist <--
...
Install the plugin with this command:
cordova plugin add cordova-firebase-plugin --save
or for Ionic this command:
ionic cordova plugin add cordova-firebase-plugin
or add this to your config.xml:
<plugin name="cordova-firebase-plugin" spec="1.2.0" />
CordovaFirebasePlugin.reportNonFatalCrash("Test Error Name", "Test Error Message", "Test Error URL", "Test Error Stacktrace")
Build the app, run it with Xcode on a device/simulator, press stop in Xcode, reopen the app, run the above crash report code, exit the app, remove it from the background, and then reopen it to send the test crash.
You will have to manually place your configuration file in the platforms/ios/My Project/Resources
folder of your project and hard code the app id and api key in plugin.xml
.
The plugin currently does not have typings.
declare var CordovaFirebasePlugin: any;
var CordovaFirebasePlugin;
CordovaFirebasePlugin.setAnalyticsScreenName("Login");
CordovaFirebasePlugin.setCrashlyticsUserID("123");
CordovaFirebasePlugin.setAnalyticsUserID("123");
CordovaFirebasePlugin.reportEvent("Login_Success", {timestamp:new Date()} );
CordovaFirebasePlugin.setAnalyticsUserProperty("Role", "Admin");
CordovaFirebasePlugin.reportNonFatalCrash("errorName", "errorMessage", "errorUrl", "stackTrace");
FAQs
A cordova plugin that wraps the Firebase SDK with an easy to use api.
We found that cordova-firebase-plugin demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
vlt's new "reproduce" tool verifies npm packages against their source code, outperforming traditional provenance adoption in the JavaScript ecosystem.
Research
Security News
Socket researchers uncovered a malicious PyPI package exploiting Deezer’s API to enable coordinated music piracy through API abuse and C2 server control.
Research
The Socket Research Team discovered a malicious npm package, '@ton-wallet/create', stealing cryptocurrency wallet keys from developers and users in the TON ecosystem.