Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
cordova-plugin-local-notifications
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Nabil Sadki
cordova-plugin-local-notifications
Commits
ec62018a
Commit
ec62018a
authored
Feb 14, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add `add` as deprecated alias for `schedule`
parent
ab8e6643
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
11 deletions
+19
-11
local-notification.js
www/local-notification.js
+19
-11
No files found.
www/local-notification.js
View file @
ec62018a
...
@@ -30,7 +30,7 @@ var exec = require('cordova/exec'),
...
@@ -30,7 +30,7 @@ var exec = require('cordova/exec'),
*************/
*************/
/**
/**
* Returns the default settings
* Returns the default settings
.
*
*
* @return {Object}
* @return {Object}
*/
*/
...
@@ -39,7 +39,7 @@ exports.getDefaults = function () {
...
@@ -39,7 +39,7 @@ exports.getDefaults = function () {
};
};
/**
/**
* Overwrite default settings
* Overwrite default settings
.
*
*
* @param {Object} defaults
* @param {Object} defaults
*/
*/
...
@@ -423,17 +423,25 @@ exports.registerPermission = function (callback, scope) {
...
@@ -423,17 +423,25 @@ exports.registerPermission = function (callback, scope) {
exec
(
fn
,
null
,
'LocalNotification'
,
'registerPermission'
,
[]);
exec
(
fn
,
null
,
'LocalNotification'
,
'registerPermission'
,
[]);
};
};
/****************
* DEPRECATIONS *
****************/
/**
/**
* @deprecated
* Schedule a new local notification.
*
*/
* Register permission to show notifications if not already granted.
exports
.
add
=
function
()
{
*
console
.
warn
(
'Depreated: Please use `notification.local.schedule` instead.'
);
* @param {Function} callback
* The function to be exec as the callback
exports
.
schedule
.
apply
(
this
,
arguments
);
* @param {Object?} scope
};
* The callback function's scope
/**
* 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.'
);
console
.
warn
(
'Depreated: Please use `notification.local.registerPermission` instead.'
);
exports
.
registerPermission
.
apply
(
this
,
arguments
);
exports
.
registerPermission
.
apply
(
this
,
arguments
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment