New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

cordova-plugin-firebase-messaging-bg

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-firebase-messaging-bg

Adds support for Firebase Cloud Messaging to your Cordova app

latest
Source
npmnpm
Version
1.5.4
Version published
Maintainers
1
Created
Source

Cordova Firebase Messaging Plugin

This plugin adds Firebase Cloud Messaging support to your Cordova and Phonegap apps.

The goal was have push notifications be fired as native javascript events and make of Promises.

How do I install it?

cordova plugin add https://github.com/blakgeek/cordova-plugin-firebase-messaging

or

phonegap local plugin add https://github.com/blakgeek/cordova-plugin-firebase-messaging

How do I use it?

window.addEventListener('pushnotification', function(notification) {
    
    // was the app in the forground when the notification was received?
    var inForground = notification.$foreground;
    // was the app active when then notification was received?
    notification.$active;
    
    alert()
}, false);

This plugin was inspired by this great plugin https://github.com/fechanique/cordova-plugin-fcm thanks fechanique.

Keywords

ecosystem:cordova

FAQs

Package last updated on 05 Jun 2018

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