OneSignal push adapter for parse-server. This fork support multiple OneSignal apps in one application.
npm install --save git+https://[email protected]/andj207/parse-server-onesignal-push-adapter.git
var OneSignalPushAdapter = require('parse-server-onesignal-push-adapter');
let oneSignalPushAdapter = new OneSignalPushAdapter({
'app identifier matches with the value in Installation table to classify': {
oneSignalAppId: "",
oneSignalApiKey: ""
},
....
});
var api = new ParseServer({
push: {
adapter: oneSignalPushAdapter
},
...otherOptions
});