Meteor-Community-Packages / Meteor-Community-Packages/raix-push

Deny push.send from browser

Open
#231 2 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.