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
1acb7ce9
Commit
1acb7ce9
authored
Nov 21, 2013
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added the required property types.
parent
af200180
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
README.md
README.md
+10
-10
No files found.
README.md
View file @
1acb7ce9
...
@@ -57,14 +57,14 @@ All properties are optional. If no date object is given, the notification will p
...
@@ -57,14 +57,14 @@ All properties are optional. If no date object is given, the notification will p
```
javascript
```
javascript
window
.
plugin
.
notification
.
local
.
add
({
window
.
plugin
.
notification
.
local
.
add
({
id
:
id
,
// a unique id of the notifiction
id
:
String
,
// a unique id of the notifiction
date
:
date
,
// this expects a date object
date
:
Date
,
// this expects a date object
message
:
message
,
// the message that is displayed
message
:
String
,
// the message that is displayed
title
:
title
,
// the title of the message
title
:
String
,
// the title of the message
repeat
:
repeat
,
// has the options of daily', 'weekly',''monthly','yearly')
repeat
:
String
,
// has the options of daily', 'weekly',''monthly','yearly')
badge
:
badge
,
// displays number badge to notification
badge
:
Number
,
// displays number badge to notification
foreground
:
forground
,
// a javascript function to be called if the app is running
foreground
:
String
,
// a javascript function to be called if the app is running
background
:
background
,
// a javascript function to be called if the app is in the background
background
:
String
,
// a javascript function to be called if the app is in the background
});
});
```
```
...
@@ -87,11 +87,11 @@ var now = new Date().getTime(),
...
@@ -87,11 +87,11 @@ var now = new Date().getTime(),
_60_seconds_from_now
=
new
Date
(
now
+
60
*
1000
);
_60_seconds_from_now
=
new
Date
(
now
+
60
*
1000
);
window
.
plugin
.
notification
.
local
.
add
({
window
.
plugin
.
notification
.
local
.
add
({
id
:
1
,
id
:
1
,
// is converted to a string
date
:
_60_seconds_from_now
,
date
:
_60_seconds_from_now
,
message
:
'Hello world!'
,
message
:
'Hello world!'
,
title
:
'Check that out!'
,
title
:
'Check that out!'
,
repeat
:
'weekly'
,
// will fire every week on this day
repeat
:
'weekly'
,
// will fire every week on this day
foreground
:
'foreground'
,
foreground
:
'foreground'
,
background
:
'background'
background
:
'background'
});
});
...
...
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