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

Android, "Push.appCollection" is empty - No clients have registred on the server yet...

Open
#301 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
505
Forks
191
PR merge metrics
No merged PRs in 30d

Description

Please help me finding out what's wrong.

// server
```
Meteor.startup(function () {

Push.debug = true;

Push.Configure({
gcm: {
apiKey: '',
projectNumber:
}/*,
"production": true,
"badge": true,
"sound": true,
"alert": true,
"vibrate": true */
});

Push.addListener('error', function(err) {
console.log(err);
});

});
```

// client
```
Meteor.startup( function() {

Push.Configure({
android: {
senderID: 1016592401718,
alert: true,
badge: true,
sound: true,
vibrate: true,
clearNotifications: false
// icon: '',
// iconColor: ''
},
production: false

/*,
ios: {
alert: true,
badge: true,
sound: true
}
*/

});

Push.addListener('message', function(notification) {
console.log('QWERTY',notification);
});

Push.send({
from: 'Test',
title: 'Hello',
text: 'World',
badge: 12,
query: {}
});

});

```

Running meteor like this
`meteor --settings ./config/settings.json `

All I get is:
```
Push: Settings userId "YnZmtvyX8Y9ZDwSY7" for app: K2x8f4Kz56eqzk8Td
Push: Send message "Hello" via query {}
Push: Sent message "Hello" to 0 ios apps 0 android apps
Push, GUIDE: The "Push.appCollection" is empty - No clients have registred on the server yet...
``

/Lost meteorite

Contributor guide

Open the contributing guide

Research direction

Start with the client and server Meteor.startup blocks, especially Push.Configure, Push.send, and the Android senderID and GCM settings. Check how clients are registered into Push.appCollection and verify the registration path before testing a send; done means the client appears in the collection and receives the notification.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
backend, mobile-dev
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.