Meteor-Community-Packages / Meteor-Community-Packages/raix-push
Not receiving notification on android 4.2.1 and 4.2.2 with Meteor 1.2.1
- Dominant language
- JavaScript
- Stars
- 505
- Forks
- 191
- PR merge metrics
- No merged PRs in 30d
Description
Hi @raix ,
I used your awesome package in my project that is mobile app with Meteor 1.2.1
I try to send push from server like below in collection hook:
```
Docs.after.insert(function(userId, doc) {
console.log("docs inserted");
Push.debug = true;
Push.send({
from: 'test',
title: doc.title,
text: doc.text.slice(0,49),
query: {}
});
});
```
It's show notification OK on one of my device with android 5.1.1 and another device with android 5 but on android 4.2.1 and 4.2.2 devices didn't show anything.
and this is my push config file:
```
{
"gcm": {
"apiKey": "",
"projectNumber":
},
"production": true,
"badge": true,
"sound": true,
"alert": true,
"vibrate": true
}
```
What is the problem?? Is this a bug or I do anything wrong?
Contributor guide
Research direction
Start by reproducing the push flow from the shown Docs.after.insert hook on Android 4.2.1 or 4.2.2 with Meteor 1.2.1. Enable Push.debug and compare its output and the supplied GCM configuration with the working Android 5 devices. Done means identifying the compatibility or configuration cause and confirming delivery on an affected device.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- android, javascript
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 32/100