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
524252ae
Commit
524252ae
authored
Feb 09, 2014
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
`onclick` instead of `ontrigger` was called on "slow" iOS devices #89
parent
7afcfecf
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
README.md
README.md
+1
-0
APPLocalNotification.m
src/ios/APPLocalNotification.m
+1
-1
No files found.
README.md
View file @
524252ae
...
@@ -50,6 +50,7 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
...
@@ -50,6 +50,7 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
-
[
enhancement:
]
Avoid blocking the main thread (on Android)
**(dpogue)**
.
-
[
enhancement:
]
Avoid blocking the main thread (on Android)
**(dpogue)**
.
-
[
bugfix:
]
`onadd`
was called each time after a repeating message was triggered (Android)
-
[
bugfix:
]
`onadd`
was called each time after a repeating message was triggered (Android)
-
[
change:
]
Reset badge with cancelAll.
-
[
change:
]
Reset badge with cancelAll.
-
[
bugfix:
]
`onclick`
instead of
`ontrigger`
was called on "slow" iOS devices.
#### Version 0.7.1 (31.01.2014)
#### Version 0.7.1 (31.01.2014)
-
[
bugfix:
]
`ongoing`
attribute was ignored.
-
[
bugfix:
]
`ongoing`
attribute was ignored.
...
...
src/ios/APPLocalNotification.m
View file @
524252ae
...
@@ -253,7 +253,7 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
...
@@ -253,7 +253,7 @@ NSString *const kAPP_LOCALNOTIFICATION = @"APP_LOCALNOTIFICATION";
NSDate
*
now
=
[
NSDate
date
];
NSDate
*
now
=
[
NSDate
date
];
NSTimeInterval
fireDateDistance
=
[
now
timeIntervalSinceDate
:
notification
.
fireDate
];
NSTimeInterval
fireDateDistance
=
[
now
timeIntervalSinceDate
:
notification
.
fireDate
];
NSString
*
event
=
(
fireDateDistance
<
0
.
0
1
)
?
@"trigger"
:
@"click"
;
NSString
*
event
=
(
fireDateDistance
<
0
.
0
5
)
?
@"trigger"
:
@"click"
;
if
(
autoCancel
&&
!
isActive
)
if
(
autoCancel
&&
!
isActive
)
{
{
...
...
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