Skip to content

Commit

Permalink
deactivate post trip notifications
Browse files Browse the repository at this point in the history
  • Loading branch information
st-patrick committed Dec 20, 2019
1 parent de6c628 commit 02bdbe9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions www/js/tripconfirm/post-trip-prompt.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 02bdbe9

Please sign in to comment.