Socket
Socket
Sign inDemoInstall

cordova-plugin-firebase

Package Overview
Dependencies
Maintainers
1
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-firebase

Cordova plugin for Google Firebase


Version published
Weekly downloads
386
increased by23.72%
Maintainers
1
Weekly downloads
 
Created
Source

cordova-plugin-firebase

Cordova plugin for Google Firebase

This plugin is under development! The primary goal for this plugin is to implement FCM for cross platform push notifications. Other parts of the SDK will follow later.

Angular implementation is maintained in the angular-cordova project (source)

Installation

Install the plugin by adding it your project's config.xml:

<plugin name="cordova-plugin-firebase" spec="https://github.com/arnesson/cordova-plugin-firebase" />

or by running:

cordova plugin add https://github.com/arnesson/cordova-plugin-firebase.git --save

Download your Firebase configuration files, GoogleService-Info.plist for ios and google-services.json for android, and place them in the root folder of your cordova project. See https://support.google.com/firebase/answer/7015592 for details. Whenever cordova prepare is triggered the configuration files are copied to the right place in the ios and android app.

Methods

getRegistrationId

Get the device id (token)

window.FirebasePlugin.getRegistrationId(function(token) {
    // save this in your backend and use it to push notifications to this device
    console.log(token);
}, function(error) {
    console.error(error);
});

Keywords

FAQs

Package last updated on 26 Jun 2016

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc