Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot send any push notification! #37

Open
ramyareye opened this issue Nov 26, 2017 · 0 comments
Open

Cannot send any push notification! #37

ramyareye opened this issue Nov 26, 2017 · 0 comments

Comments

@ramyareye
Copy link

Hi,
I'm trying to use this adaptor, everything seems to be ok and I call Parse.Push.send and the response is true but no notification in onesignal dashboard and device! any idea ?

var OneSignalPushAdapter = require('parse-server-onesignal-push-adapter');

var oneSignalPushAdapter = new OneSignalPushAdapter({
  oneSignalAppId:"***",
  oneSignalApiKey:"***"
});
var api = new ParseServer({
  ...,
  push: {
    adapter: oneSignalPushAdapter
  }
});
Parse.Push.send({
	  channels: [ "All" ],
	  data: {
	    alert: "The Giants won against the Mets 2-3."
	  }
	}, {
    useMasterKey: true
  })
  .then(function(red) {
    response.success(red);
  }, function(error) {
    response.error("Error while trying to send push " + error.message);
  });

Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant