aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/notificators/NotificatorPushover.java8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/main/java/org/traccar/notificators/NotificatorPushover.java b/src/main/java/org/traccar/notificators/NotificatorPushover.java
index 52646bdfb..141d652ca 100644
--- a/src/main/java/org/traccar/notificators/NotificatorPushover.java
+++ b/src/main/java/org/traccar/notificators/NotificatorPushover.java
@@ -47,10 +47,9 @@ public class NotificatorPushover extends Notificator {
}
public NotificatorPushover() {
- // see https://pushover.net/api
url = "https://api.pushover.net/1/messages.json";
- token = Context.getConfig().getString("notificator.pushover.token"); // (required) token from pushover.net
- puser = Context.getConfig().getString("notificator.pushover.user"); // (required) user from pushover.net
+ token = Context.getConfig().getString("notificator.pushover.token");
+ puser = Context.getConfig().getString("notificator.pushover.user");
}
@Override
@@ -61,9 +60,6 @@ public class NotificatorPushover extends Notificator {
String device = "";
if (user.getAttributes().containsKey("notificator.pushover.device")) {
- // optional: your user's device name to send the message directly
- // to that device, rather than all of the user's devices (multiple devices may be separated by a comma)
- // i.e.: device1,device2 (no space)
device = user.getString("notificator.pushover.device").replaceAll(" *, *", ",");
}