Skip to content

Add a bit more precise doc on Push Notification Wiki #1320

Closed
@lolobosse

Description

@lolobosse

I lost half an hour with that because I didn't know how to put this useMasterKey: true, could be cool to update the docs with the #401 response of @gfosco (here).

Something like this:

Parse.Push.send({
  where: query,
  data: {
    alert: 'Test',
    badge: 1,
    sound: 'default'
  }
}, {
  success: function() {
    console.log('##### PUSH OK');
  },
  error: function(error) {
    console.log('##### PUSH ERROR');
  },
  useMasterKey: true
});

Instead of:

Parse.Push.send({
  where: { ... },
  data: { ... }
}, { useMasterKey: true });

Putting it there would be very cool! 😄

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