UpviseJS : Push Notification

Use Notif.send(title, body, onclick, type, recipients) method to send a push notification

You need 2 different user account to test the push notifications, as notification you send as user are not sent to you.
Config.appid = "Myapp";

// Define application namespace
function MyApp() {}

// Callback function executed when other users tap on the notification
MyApp.viewTask = function(id) {
function notify(id) {
    var emails = ""; // empty list of emails means send push notification to all managers in the account
    Notif.send("Task created", "Some details", "Myapp.showTask({id})");