parse-server icon indicating copy to clipboard operation
parse-server copied to clipboard

iOS does't receive Push notification from Cloud code

Open kjisoo opened this issue 10 years ago • 4 comments

When i send push in cloud code, iOS does't receive push but android very well. also REST API is working both iOS and Android.

My cloudcode

var query = new Parse.Query(Parse.Installation);
  Parse.Push.send({
    where: query,
    data: {
      alert: "Answer",
      sound: "default"
    }
  }, {
    success: function(){
    }, error: function(error){
    }, useMasterKey: true
  });

kjisoo avatar Feb 19 '16 06:02 kjisoo

@kjisoo @drew-gross how did you resolve this issue, I have the same problem, CURL works but cloud code not...

KudosGuy avatar Mar 09 '16 22:03 KudosGuy

@KudosGuy Did you define ServerURL? I missed it

kjisoo avatar Mar 10 '16 01:03 kjisoo

@kjisoo yeah I did, I guess I just keep digging...

KudosGuy avatar Mar 10 '16 18:03 KudosGuy

Any answers here?

A lot of us can't get push notifications to work in cloud code.

otymartin avatar Mar 10 '16 21:03 otymartin