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
448b220d
Commit
448b220d
authored
Jan 31, 2014
by
Sebastián Katzer
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:katzer/cordova-plugin-local-notifications
parents
f9987b7b
cc9b3c02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
6 deletions
+13
-6
README.md
README.md
+3
-3
Options.java
src/android/Options.java
+7
-0
Receiver.java
src/android/Receiver.java
+3
-3
No files found.
README.md
View file @
448b220d
...
@@ -51,10 +51,10 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
...
@@ -51,10 +51,10 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
#### Version 0.7.0 (22.01.2014)
#### Version 0.7.0 (22.01.2014)
**Note:**
The new way of callback registration will be not compatible with previous versions! See #62
**Note:**
The new way of callback registration will be not compatible with previous versions! See #62
-
[
feature:
]
Added new callback registration interface and new callback types.
-
**[feature:]**
Added new callback registration interface and new callback types.
-
[
feature:
]
Added the ability to override notifications default properties.
-
[
feature:
]
Added the ability to override notifications default properties.
-
[
bugfix:
]
Fixed build failure if iOS/MacOS/Xcode were to old (#68).
-
[
bugfix:
]
Fixed build failure if iOS/MacOS/Xcode were to old (#68).
-
[
chance
]
The message and not the title will be used as the ticker text.
-
**[change]**
The message and not the title will be used as the ticker text.
#### Version 0.7.0beta1 (17.01.2014)
#### Version 0.7.0beta1 (17.01.2014)
-
[
bugfix:
]
App throws an error on iOS if
`message`
is null.
-
[
bugfix:
]
App throws an error on iOS if
`message`
is null.
...
@@ -64,7 +64,7 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
...
@@ -64,7 +64,7 @@ More informations can be found [here](https://build.phonegap.com/plugins/413).
-
[
bugfix:
]
`cancel`
on iOS did not work.
-
[
bugfix:
]
`cancel`
on iOS did not work.
-
[
enhancement:
]
Added 'hourly' as a new repeat time aliase.
-
[
enhancement:
]
Added 'hourly' as a new repeat time aliase.
-
[
enhancement:
]
Repeat with custom intervals on Android.
-
[
enhancement:
]
Repeat with custom intervals on Android.
-
**[
bugfix
:]**
Callbacks are called with the ID as a number and not as a string.
-
**[
change
:]**
Callbacks are called with the ID as a number and not as a string.
-
[
enhancement:
]
The background callback on Android is called, even the app is not running when the notification is tapped.
-
[
enhancement:
]
The background callback on Android is called, even the app is not running when the notification is tapped.
-
[
enhancement:
]
Notifications are repeated more precisely.
-
[
enhancement:
]
Notifications are repeated more precisely.
-
[
feature:
]
Added
`json`
property to pass custom data through the notification.
-
[
feature:
]
Added
`json`
property to pass custom data through the notification.
...
...
src/android/Options.java
View file @
448b220d
...
@@ -215,6 +215,13 @@ public class Options {
...
@@ -215,6 +215,13 @@ public class Options {
}
}
/**
/**
*
*/
public
Boolean
getOngoing
()
{
return
options
.
optBoolean
(
"ongoing"
,
false
);
}
/**
* Gibt die zusätzlichen Daten als String an.
* Gibt die zusätzlichen Daten als String an.
*/
*/
public
String
getJSON
()
{
public
String
getJSON
()
{
...
...
src/android/Receiver.java
View file @
448b220d
...
@@ -126,7 +126,8 @@ public class Receiver extends BroadcastReceiver {
...
@@ -126,7 +126,8 @@ public class Receiver extends BroadcastReceiver {
.
setSmallIcon
(
options
.
getSmallIcon
())
.
setSmallIcon
(
options
.
getSmallIcon
())
.
setLargeIcon
(
icon
)
.
setLargeIcon
(
icon
)
.
setSound
(
options
.
getSound
())
.
setSound
(
options
.
getSound
())
.
setAutoCancel
(
options
.
getAutoCancel
());
.
setAutoCancel
(
options
.
getAutoCancel
())
.
setOngoing
(
options
.
getOngoing
());
setClickEvent
(
notification
);
setClickEvent
(
notification
);
...
@@ -176,4 +177,4 @@ public class Receiver extends BroadcastReceiver {
...
@@ -176,4 +177,4 @@ public class Receiver extends BroadcastReceiver {
private
void
fireTriggerEvent
()
{
private
void
fireTriggerEvent
()
{
LocalNotification
.
fireEvent
(
"trigger"
,
options
.
getId
(),
options
.
getJSON
());
LocalNotification
.
fireEvent
(
"trigger"
,
options
.
getId
(),
options
.
getJSON
());
}
}
}
}
\ No newline at end of file
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