s && window.plugins.OrtcPushPlugin){
                    var OrtcPushPlugin = window.plugins.OrtcPushPlugin;
                    OrtcPushPlugin.log("Clearing notifications");
                    OrtcPushPlugin.cancelAllLocalNotifications()
                        .then(function() {
                            alert('Notifications cleared')
                        });
                }
            };
        
        function sendMessage()
        {
            if(window.plugins && window.plugins.OrtcPushPlu