From f28620166d390fa85f3d283a7307f0746d559cbb Mon Sep 17 00:00:00 2001 From: Pliable Pixels Date: Sun, 28 Oct 2018 13:54:01 -0400 Subject: #725 if already transitioned out, handle process-push in Portal --- www/js/EventServer.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'www/js/EventServer.js') diff --git a/www/js/EventServer.js b/www/js/EventServer.js index a67d5426..68c21e9a 100644 --- a/www/js/EventServer.js +++ b/www/js/EventServer.js @@ -478,6 +478,7 @@ angular.module('zmApp.controllers') // console.log("*********** MEDIA BLOG IS " + mediasrc); media = $cordovaMedia.newMedia(mediasrc); + push.on('registration', function (data) { pushInited = true; NVRDataModel.debug("Push Notification registration ID received: " + JSON.stringify(data)); @@ -548,6 +549,7 @@ angular.module('zmApp.controllers') push.on('notification', function (data) { $ionicPlatform.ready(function () { + NVRDataModel.log("******* notification handler device ready"); NVRDataModel.debug("received push notification"); var ld = NVRDataModel.getLogin(); -- cgit v1.2.3