Skip to content

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

Closed

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! 😄

Activity

  1. davimacedo commented on Apr 1, 2016

    @davimacedo
    Member

    Maybe it would be also good add an example of cloud code function to send push notifications. I have been indicating the one below to the guys who ask me one:
    https://gist.github.com/brunopicinin/ac38aef5665aa3208c35

  2. flovilmart commented on Apr 1, 2016

    @flovilmart
    Contributor

    @lolobosse you should not use the old backbone style success, error callback but promises...

  3. lolobosse commented on Apr 1, 2016

    @lolobosse
    Author

    @flovilmart I'm ready to use anything as long as it is indicated in the docs 😉

  4. drew-gross commented on Apr 1, 2016

    @drew-gross
    Contributor

    Done! Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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