From f82debadf0e7f7ade08cf771237ac96c41c0a839 Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Wed, 2 May 2018 12:05:15 -0400 Subject: wait for platform ready on notification #604 --- www/js/PortalLoginCtrl.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js/PortalLoginCtrl.js') diff --git a/www/js/PortalLoginCtrl.js b/www/js/PortalLoginCtrl.js index 8e9d73e9..b2d75dc9 100644 --- a/www/js/PortalLoginCtrl.js +++ b/www/js/PortalLoginCtrl.js @@ -294,7 +294,8 @@ angular.module('zmApp.controllers').controller('zmApp.PortalLoginCtrl', ['$ionic } - var pp = $scope.$on("process-push", function () { + //this needs to be rootScope so it lives even when we are out of view + var pp = $rootScope.$on("process-push", function () { NVRDataModel.debug("*** PROCESS PUSH HANDLER CALLED INSIDE PORTAL LOGIN, setting ProcessPush to true"); processPush = true; evaluateTappedNotification(); -- cgit v1.2.3