Skip to content

Cannot send any push notification! #37

Open
@ramyareye

Description

@ramyareye

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions