detect window.plugin.notification
remove unused function parameters