parse-community / parse-server-push-adapter

A push notification adapter for Parse Server
https://parseplatform.org
MIT License
87 stars 99 forks source link

push notification to channels except the current user #59

Closed pastordee closed 7 years ago

pastordee commented 7 years ago

Hi I'm new to parse how can the user send a post and not receive the notification him self

var theMessage = request.params.message; var theChannel = request.params.channels; var theView = request.params.view; var theTitle = request.params.thetitle; var pushQuery = new Parse.Query(Parse.Installation); pushQuery.equalTo('channels', theChannel); pushQuery.notEqualTo('user', request.params.user); Parse.Push.send({ where: pushQuery, data: { title: theTitle, alert: theMessage, view: theView, badge: 1, sound: 'default' } }, { useMasterKey: true }).then(function(){ response.success('Push ok'); }, function(error){ response.error('Push error'); });

This works fine but the sender also receives the push notifications.

flovilmart commented 7 years ago

Hi this issue should be opened on parse-server, can you update to latest parse-server version (2.5.1) and reopen the issue on the parse-server repo if it persists?