Now added secure client-side send!
Pre-release
Pre-release
This release is huge since it starts to utilize the isomorphic nature of Meteor.js - cool, heh?
Added allow and deny rules as you know them:
Push.allow({
send: function(userId, notification) {
return true;
}
});
So you can send to all apps using the query selector:
// Send from anywhere - this could be in a browser...
// Lets also set the badge on ios - 12 is no coincidence
Push.send({ from: 'Driftsstatus', title: 'Test', text: 'Hello from client', count: 12, query: {}, payload: { foo: new Date() } });
Note payload types are preserved via EJSON
So if you added the accounts package to your app, why not send to an user?
Push.send({ from: 'RaiX', title: 'Test', text: 'Hello from client to another user', count: 1, query: {
userId: '6MY9ftp7cYGSQZw9z'
} });
You can still send to app id's or the real tokens
Additional features:
- We automatically rig the apn feedback to cleanup invalidated tokens
- Updated documentation in general and added guides to both apn and gcm