From 648c7684898f0056f0202b6b43ba9f5f11655703 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Sun, 23 Sep 2018 15:09:56 +1200 Subject: Implement push notifications --- web/app/controller/Root.js | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'web/app/controller/Root.js') diff --git a/web/app/controller/Root.js b/web/app/controller/Root.js index 0edc049..7c0345a 100644 --- a/web/app/controller/Root.js +++ b/web/app/controller/Root.js @@ -109,6 +109,14 @@ Ext.define('Traccar.controller.Root', { loadApp: function () { var attribution, eventId; + + if (window.webkit && window.webkit.messageHandlers.appInterface) { + window.webkit.messageHandlers.appInterface.postMessage('login'); + } + if (window.appInterface) { + window.appInterface.postMessage('login'); + } + Ext.getStore('Groups').load(); Ext.getStore('Drivers').load(); Ext.getStore('Geofences').load(); -- cgit v1.2.3