Skip to content

Commit f81dea5

Browse files
On iOS 10 the interval was required to make it work
1 parent 89064d2 commit f81dea5

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

local-notifications.ios.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,9 @@ LocalNotifications._schedulePendingNotifications = function () {
112112
notification.soundName = UILocalNotificationDefaultSoundName;
113113
}
114114

115-
notification.repeatInterval = LocalNotifications._getInterval(options.interval);
115+
if (options.interval !== 0) {
116+
notification.repeatInterval = LocalNotifications._getInterval(options.interval);
117+
}
116118

117119
// TODO add these after v1
118120
// notification.soundName = custom..;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nativescript-local-notifications",
3-
"version": "1.1.1",
3+
"version": "1.1.2",
44
"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.",
55
"main" : "local-notifications.js",
66
"nativescript": {

0 commit comments

Comments
 (0)