Meteor-Community-Packages / Meteor-Community-Packages/raix-push
Deny push.send from browser
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 505
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
Hi @raix
im trying to prevent the push.send from the browser console with
```
// inside client directory
Meteor.startup(function () {
Push.deny({
send: function(userId, notification) {
return false;
}
});
});
```
but it doesn't work...
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start in the client directory with the provided Meteor.startup and Push.deny example, then reproduce Push.send from the browser console. Trace how the push.send denial is handled and confirm that the browser invocation is rejected without affecting permitted sends.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- authorization
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100