You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* The options object passed into the schedule function.
5
+
*/
6
+
exportinterfaceScheduleOptions{
7
+
/**
8
+
* A number so you can easily distinguish your notifications.
9
+
* Default 0.
10
+
*/
11
+
id?: number;
12
+
13
+
/**
14
+
* The title which is shown in the statusbar.
15
+
* Default empty.
16
+
*/
17
+
title?: string;
18
+
19
+
/**
20
+
* The text below the title.
21
+
* Default empty.
22
+
*/
23
+
body?: string;
24
+
25
+
/**
26
+
* On Android you can show a different text in the statusbar, instead of the 'body'.
27
+
* Default not set, so `body` is used.
28
+
*/
29
+
ticker?: string;
30
+
31
+
/**
32
+
* A JavaScript Date object indicating when the notification should be shown.
33
+
* Default 'now'.
34
+
*/
35
+
at?: Date;
36
+
37
+
/**
38
+
* On iOS (and some Android devices) you see a number on top of the app icon. On most Android devices you'll see this number in the notification center.
39
+
* Default not set (0).
40
+
*/
41
+
badge?: number;
42
+
43
+
/**
44
+
* Currently this is only used on Android where you can set this to 'null' to suppress the sound.
45
+
* Default 'the default notification sound'.
46
+
*/
47
+
sound?: string;
48
+
}
49
+
50
+
exportinterfaceReceivedNotification{
51
+
id: number;
52
+
title?: string;
53
+
body?: string;
54
+
}
55
+
56
+
/**
57
+
* On iOS you need to ask permission to schedule a notification.
58
+
* You can have the `schedule` funtion do that for you automatically
59
+
* (the notification will be scheduled in case the user granted permission),
60
+
* or you can manually invoke `requestPermission` if that's your thing.
Copy file name to clipboardExpand all lines: package.json
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
{
2
2
"name": "nativescript-local-notifications",
3
-
"version": "1.0.0",
4
-
"description": "The Local Notifications plugin allows your app to show notifications when the app is not running. Just like remote push notifications, but a few orders of magnitude easier to set up.",
3
+
"version": "1.0.1",
4
+
"description": "The Local Notifications plugin allows your app to show notifications when the app is not running. Just like remote push notifications, but a few orders of magnitude easier to set up.",
0 commit comments