Hi
I’m starting to wrapp up the production of my first phone app with meteor and i’m trying to get push to work but am struggling. This is basically the last part of the puzzle but as i said, i’m having a struggle.
I populate the collection by simply sending a push notification, so far so good. But i have no idea on how I can see if the client recieve a push or not. I’ve tried with the following code:
Meteor.startup(function () {
if (Meteor.isCordova) {
window.alert = navigator.notification.alert;
}
Push.addListener('alert', function(notification) { // Called on every message Dialog.alert(notification.message); console.log(notification.message); });
});
but as far as i can tell, this code never runs.
Could anyone point me in the right direction please?
Cheers
edit: Might also add that there are no errors displayed when turning on the Push debug.
And certs seems to be in order since it gives me the option to not display push notices.