
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
A Node.JS simple interface to Firebase Cloud Messaging (FCM) for Android and iOS
A Node.JS simple interface to Firebase Cloud Messaging (FCM) for Android and iOS
Via npm:
$ npm install fcm-push
var FCM = require('fcm-push');
var serverKey = '';
var fcm = new FCM(serverKey);
var message = {
to: 'registration_token_or_topics', // required fill with device token or topics
collapse_key: 'your_collapse_key',
data: {
your_custom_data_key: 'your_custom_data_value'
},
notification: {
title: 'Title of your push notification',
body: 'Body of your push notification'
}
};
//callback style
fcm.send(message, function(err, response){
if (err) {
console.log("Something has gone wrong!");
} else {
console.log("Successfully sent with response: ", response);
}
});
//promise style
fcm.send(message)
.then(function(response){
console.log("Successfully sent with response: ", response);
})
.catch(function(err){
console.log("Something has gone wrong!");
console.error(err);
})
See FCM documentation for details.
Documentation by @sofayam Supply agent as extra parameter in FCM Constructor, e.g. typical cntlm case:
var HttpsProxyAgent = require('https-proxy-agent');
var proxyurl = 'http://127.0.0.1:3128'
agent = new HttpsProxyAgent(proxyurl);
var fcm = new FCM(serverKey, agent);
Written and maintained by Rasmunandar Rustam & Oscar Kurniawan Thanks to Changshin Lee for his great work on node-gcm, cloned and modified from there.
The MIT License
Copyright (c) 2016 Rasmunandar Rustam (nandar.rustam@gmail.com)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
1.1.3
1.1.2
1.1.1
1.1.0
1.0.7
1.0.6:
1.0.5:
1.0.3:
1.0.1:
1.0.0:
FAQs
A Node.JS simple interface to Firebase Cloud Messaging (FCM) for Android and iOS
The npm package fcm-push receives a total of 1,447 weekly downloads. As such, fcm-push popularity was classified as popular.
We found that fcm-push 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.