From 02bdbe93f2364774c1244b6e71e36cd93b557024 Mon Sep 17 00:00:00 2001 From: Patrick Reinbold Date: Thu, 19 Dec 2019 17:40:42 +0100 Subject: [PATCH] deactivate post trip notifications --- www/js/tripconfirm/post-trip-prompt.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/www/js/tripconfirm/post-trip-prompt.js b/www/js/tripconfirm/post-trip-prompt.js index d129e428e..87c688a13 100644 --- a/www/js/tripconfirm/post-trip-prompt.js +++ b/www/js/tripconfirm/post-trip-prompt.js @@ -63,14 +63,16 @@ angular.module('emission.tripconfirm.posttrip.prompt', ['emission.plugin.logger' Logger.log( "registertripEnd received!" ); // iOS var notifyPlugin = $window.cordova.plugins.BEMTransitionNotification; - notifyPlugin.addEventListener(notifyPlugin.TRIP_END, getTripEndReportNotification()) + /* we (DFKI / mcqdev) don't want to use the post trimp notifications + * + notifyPlugin.addEventListener(notifyPlugin.TRIP_END, getTripEndReportNotification()) .then(function(result) { // $window.broadcaster.addEventListener("TRANSITION_NAME", function(result) { Logger.log("Finished registering "+notifyPlugin.TRIP_END+" with result "+JSON.stringify(result)); }) .catch(function(error) { Logger.displayError("Unable to register notifications for trip end", error); - }); + });*/ } var getFormattedTime = function(ts_in_secs) {