Commit 1acb7ce9 by Sebastián Katzer

Added the required property types.

parent af200180
......@@ -57,14 +57,14 @@ All properties are optional. If no date object is given, the notification will p
```javascript
window.plugin.notification.local.add({
id: id, // a unique id of the notifiction
date: date, // this expects a date object
message: message, // the message that is displayed
title: title, // the title of the message
repeat: repeat, // has the options of daily', 'weekly',''monthly','yearly')
badge: badge, // displays number badge to notification
foreground: forground, // 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
id: String, // a unique id of the notifiction
date: Date, // this expects a date object
message: String, // the message that is displayed
title: String, // the title of the message
repeat: String, // has the options of daily', 'weekly',''monthly','yearly')
badge: Number, // displays number badge to notification
foreground: String, // a javascript function to be called if the app is running
background: String, // a javascript function to be called if the app is in the background
});
```
......@@ -87,7 +87,7 @@ var now = new Date().getTime(),
_60_seconds_from_now = new Date(now + 60*1000);
window.plugin.notification.local.add({
id: 1,
id: 1, // is converted to a string
date: _60_seconds_from_now,
message: 'Hello world!',
title: 'Check that out!',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment