aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-09-23 15:09:57 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2018-09-23 15:09:57 +1200
commit517382ccc972d6d1ba2b5fd2d912cc6e5ac83902 (patch)
tree4e1985b73c1e4e501e2786dbc9e57cf02bc878a4 /src/org/traccar/notification
parenta7296d99876000e65bef9b9df708f57ebabbe894 (diff)
downloadtrackermap-server-517382ccc972d6d1ba2b5fd2d912cc6e5ac83902.tar.gz
trackermap-server-517382ccc972d6d1ba2b5fd2d912cc6e5ac83902.tar.bz2
trackermap-server-517382ccc972d6d1ba2b5fd2d912cc6e5ac83902.zip
Implement push notifications
Diffstat (limited to 'src/org/traccar/notification')
-rw-r--r--src/org/traccar/notification/NotificatorManager.java4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/org/traccar/notification/NotificatorManager.java b/src/org/traccar/notification/NotificatorManager.java
index 7e8a9dd0e..41678d65c 100644
--- a/src/org/traccar/notification/NotificatorManager.java
+++ b/src/org/traccar/notification/NotificatorManager.java
@@ -35,6 +35,7 @@ public final class NotificatorManager {
private static final String DEFAULT_WEB_NOTIFICATOR = "org.traccar.notificators.NotificatorWeb";
private static final String DEFAULT_MAIL_NOTIFICATOR = "org.traccar.notificators.NotificatorMail";
private static final String DEFAULT_SMS_NOTIFICATOR = "org.traccar.notificators.NotificatorSms";
+ private static final String DEFAULT_FIREBASE_NOTIFICATOR = "org.traccar.notificators.NotificatorFirebase";
private final Map<String, Notificator> notificators = new HashMap<>();
private static final Notificator NULL_NOTIFICATOR = new NotificatorNull();
@@ -53,6 +54,9 @@ public final class NotificatorManager {
case "sms":
defaultNotificator = DEFAULT_SMS_NOTIFICATOR;
break;
+ case "firebase":
+ defaultNotificator = DEFAULT_FIREBASE_NOTIFICATOR;
+ break;
default:
break;
}