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
d01c621b
Commit
d01c621b
authored
Mar 08, 2015
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Do not fire `clear` or `cancel` event when clicked on persistent notifications
parent
b8d9e142
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
2 deletions
+5
-2
CHANGELOG.md
CHANGELOG.md
+1
-0
ClickActivity.java
src/android/ClickActivity.java
+4
-2
No files found.
CHANGELOG.md
View file @
d01c621b
...
@@ -6,6 +6,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo
...
@@ -6,6 +6,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo
#### Version 0.8.1 (not yet released)
#### Version 0.8.1 (not yet released)
-
Fire
`clear`
instead of
`cancel`
event when clicked on repeating notifications
-
Fire
`clear`
instead of
`cancel`
event when clicked on repeating notifications
-
Do not fire
`clear`
or
`cancel`
event when clicked on persistent notifications
### Version 0.8.0 (05.03.2015)
### Version 0.8.0 (05.03.2015)
...
...
src/android/ClickActivity.java
View file @
d01c621b
...
@@ -43,9 +43,11 @@ public class ClickActivity extends de.appplant.cordova.plugin.notification.Click
...
@@ -43,9 +43,11 @@ public class ClickActivity extends de.appplant.cordova.plugin.notification.Click
public
void
onClick
(
Notification
notification
)
{
public
void
onClick
(
Notification
notification
)
{
LocalNotification
.
fireEvent
(
"click"
,
notification
);
LocalNotification
.
fireEvent
(
"click"
,
notification
);
String
event
=
notification
.
isRepeating
()
?
"clear"
:
"cancel"
;
if
(!
notification
.
getOptions
().
isOngoing
())
{
String
event
=
notification
.
isRepeating
()
?
"clear"
:
"cancel"
;
LocalNotification
.
fireEvent
(
event
,
notification
);
LocalNotification
.
fireEvent
(
event
,
notification
);
}
super
.
onClick
(
notification
);
super
.
onClick
(
notification
);
}
}
...
...
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