Meteor-Community-Packages / Meteor-Community-Packages/raix-push
Background processing when program not working
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 505
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I wanna use background processing on push notification i think its named silent push notification.
My scenario is : If a program not running when user get push notification and delete or dismiss in notification bar "Push.addListener('startup', function(){})" must be triggered for access notification payload.
I tried contentAvailable from this answer : https://github.com/raix/push/pull/162
Like this on server side :
Push.send({
from: 'push',
title: title,
text: text,
payload: {
title: title,
text: text,
},
contentAvailable: 1,
notId: randomNumber,
query: {
// this will send to all users
}
});
but when i gets notification and dismiss it in notification center on android ( i have gcm api key don't have apn ) when i open the program cannot access to any data of notification.
This is my config.push.json :
{
"gcm": {
"apiKey": "somesuperinterestingvalues",
"projectNumber" : "magical numbers
},
"production": true,
"badge": true,
"sound": true,
"alert": true,
"vibrate": true
}
In addition i read this : https://github.com/phonegap/phonegap-plugin-push/blob/master/docs/PAYLOAD.md#background-notifications
and i tried several ways but can't find solution
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 by reviewing the startup listener behavior and the config.push.json and Push.send examples in the issue, then trace how Android notifications are delivered when the app is not running. Done means the notification payload is available through Push.addListener('startup', function(){}) after the notification is dismissed, or the issue clearly documents the platform limitation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript
- Domain
- mobile-dev
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100