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
fd647138
Commit
fd647138
authored
Dec 08, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Closes #727 - quarter intervall for iOS and Android
parent
a65f48c5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
0 deletions
+7
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
Options.java
src/android/notification/Options.java
+3
-0
APPLocalNotificationOptions.m
src/ios/APPLocalNotificationOptions.m
+3
-0
No files found.
CHANGELOG.md
View file @
fd647138
...
@@ -4,6 +4,7 @@ ChangeLog
...
@@ -4,6 +4,7 @@ ChangeLog
Please also read the
[
Upgrade Guide
](
https://github.com/katzer/cordova-plugin-local-notifications/wiki/Upgrade-Guide
)
for more information.
Please also read the
[
Upgrade Guide
](
https://github.com/katzer/cordova-plugin-local-notifications/wiki/Upgrade-Guide
)
for more information.
#### Version 0.8.3 (not yet released)
#### Version 0.8.3 (not yet released)
-
New "quarter" intervall for iOS & Android
-
Fixed #710 crash due to >500 notifications (Android)
-
Fixed #710 crash due to >500 notifications (Android)
-
Fixed crashing
`get(ID)`
if notification doesn't exist
-
Fixed crashing
`get(ID)`
if notification doesn't exist
...
...
src/android/notification/Options.java
View file @
fd647138
...
@@ -109,6 +109,9 @@ public class Options {
...
@@ -109,6 +109,9 @@ public class Options {
if
(
every
.
equals
(
"month"
))
{
if
(
every
.
equals
(
"month"
))
{
interval
=
AlarmManager
.
INTERVAL_DAY
*
31
;
interval
=
AlarmManager
.
INTERVAL_DAY
*
31
;
}
else
}
else
if
(
every
.
equals
(
"quarter"
))
{
interval
=
AlarmManager
.
INTERVAL_HOUR
*
2190
;
}
else
if
(
every
.
equals
(
"year"
))
{
if
(
every
.
equals
(
"year"
))
{
interval
=
AlarmManager
.
INTERVAL_DAY
*
365
;
interval
=
AlarmManager
.
INTERVAL_DAY
*
365
;
}
else
{
}
else
{
...
...
src/ios/APPLocalNotificationOptions.m
View file @
fd647138
...
@@ -173,6 +173,9 @@ NSString* const DEFAULT_SOUND = @"res://platform_default";
...
@@ -173,6 +173,9 @@ NSString* const DEFAULT_SOUND = @"res://platform_default";
else
if
([
interval
isEqualToString
:
@"month"
])
{
else
if
([
interval
isEqualToString
:
@"month"
])
{
return
NSCalendarUnitMonth
;
return
NSCalendarUnitMonth
;
}
}
else
if
([
interval
isEqualToString
:
@"quarter"
])
{
return
NSCalendarUnitQuarter
;
}
else
if
([
interval
isEqualToString
:
@"year"
])
{
else
if
([
interval
isEqualToString
:
@"year"
])
{
return
NSCalendarUnitYear
;
return
NSCalendarUnitYear
;
}
}
...
...
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