Commit d06b1ad7 by Tim Warberg

Added ongoing option (android only)

parent 0cc81a21
......@@ -117,6 +117,7 @@ window.plugin.notification.local.add({
sound: String, // A sound to be played
json: String, // Data to be passed through the notification
autoCancel: Boolean, // Setting this flag and the notification is automatically canceled when the user clicks it
ongoing: Boolean, // Prevent clearing of notification (Android only)
foreground: String, // A javascript function to be called if the app is running
background: String, // A javascript function to be called if the app is in the background
});
......
......@@ -228,6 +228,10 @@ public class Options {
return options.optBoolean("autoCancel", false);
}
public Boolean getOngoing() {
return options.optBoolean("ongoing", false);
}
/**
* Gibt die zusätzlichen Daten als String an.
*/
......
......@@ -130,7 +130,8 @@ public class Receiver extends BroadcastReceiver {
.setSmallIcon(options.getSmallIcon())
.setLargeIcon(icon)
.setSound(options.getSound())
.setAutoCancel(options.getAutoCancel());
.setAutoCancel(options.getAutoCancel())
.setOngoing(options.getOngoing());
setClickEvent(notification);
......
......@@ -36,6 +36,7 @@ LocalNotification.prototype = {
message: '',
title: '',
autoCancel: false,
ongoing: false,
badge: 0,
id: '0',
json: '',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment