replace window.plugins.pushNotification with window.pushNotification