Changed notifications to cordova plugin