Loading www/local-notification.js +19 −11 Changes for www/local-notification.js: 19 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ var exec = require('cordova/exec'), *************/ /** * Returns the default settings * Returns the default settings. * * @return {Object} */ Loading @@ -39,7 +39,7 @@ exports.getDefaults = function () { }; /** * Overwrite default settings * Overwrite default settings. * * @param {Object} defaults */ Loading Loading @@ -423,17 +423,25 @@ exports.registerPermission = function (callback, scope) { exec(fn, null, 'LocalNotification', 'registerPermission', []); }; /**************** * DEPRECATIONS * ****************/ /** * @deprecated * * Register permission to show notifications if not already granted. * * @param {Function} callback * The function to be exec as the callback * @param {Object?} scope * The callback function's scope * Schedule a new local notification. */ exports.add = function () { console.warn('Depreated: Please use `notification.local.schedule` instead.'); exports.schedule.apply(this, arguments); }; /** * Register permission to show notifications * if not already granted. */ exports.promptForPermission = function (callback, scope) { exports.promptForPermission = function () { console.warn('Depreated: Please use `notification.local.registerPermission` instead.'); exports.registerPermission.apply(this, arguments); Loading Loading
www/local-notification.js +19 −11 Changes for www/local-notification.js: 19 added lines, 11 removed lines. Original line number Diff line number Diff line Loading @@ -30,7 +30,7 @@ var exec = require('cordova/exec'), *************/ /** * Returns the default settings * Returns the default settings. * * @return {Object} */ Loading @@ -39,7 +39,7 @@ exports.getDefaults = function () { }; /** * Overwrite default settings * Overwrite default settings. * * @param {Object} defaults */ Loading Loading @@ -423,17 +423,25 @@ exports.registerPermission = function (callback, scope) { exec(fn, null, 'LocalNotification', 'registerPermission', []); }; /**************** * DEPRECATIONS * ****************/ /** * @deprecated * * Register permission to show notifications if not already granted. * * @param {Function} callback * The function to be exec as the callback * @param {Object?} scope * The callback function's scope * Schedule a new local notification. */ exports.add = function () { console.warn('Depreated: Please use `notification.local.schedule` instead.'); exports.schedule.apply(this, arguments); }; /** * Register permission to show notifications * if not already granted. */ exports.promptForPermission = function (callback, scope) { exports.promptForPermission = function () { console.warn('Depreated: Please use `notification.local.registerPermission` instead.'); exports.registerPermission.apply(this, arguments); Loading