Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
parse-server-azure-push
Advanced tools
This module provides push capabilities for parse server via azure notification hubs.
Add to your parse app like so:
var azurePushAdapter = require('parse-server-azure-push');
var ParseServer = require('parse-server').ParseServer;
var express = require('express');
var server = new ParseServer({
//... other config values ...
push: azurePushAdapter({
ConnectionString: 'notification hub connection string',
HubName: 'notification hub name'
})
});
If you do not want to explicitly specify a connection string or hub name, they can be specified via environment variables:
This module has the capability to send pushes to Windows devices. The default behavior is to send toast notifications:
Parse.Cloud.define('myPushFunction', (req, res) => {
// sends a toast notification with text 'my toast notification'
Parse.Push.send({
channels: [ 'someChannel' ],
data: {
alert: 'my toast notification'
}
}, { useMasterKey: true })
.then(res.success)
.catch(res.error);
});
If you would like to send more advanced WNS notifications, you can through the use of the 'wns' object:
// sends a raw notification with custom wns header
Parse.Push.send({
channels: [ 'someChannel' ],
data: {
alert: 'apple or gcm alert' // ignored if 'wns.data' exists for windows installations
},
wns: {
type: 'raw', // adds the X-WNS-Type: 'wns/raw' header
data: 'my raw notification', // the wns payload
headers: { // custom headers to be sent to WNS
'X-WNS-Cache-Policy': 'cache'
}
}
}, { useMasterKey: true });
FAQs
A Parse Server push adapter using notification hubs
We found that parse-server-azure-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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.