From 20e8e3aa35b567af5d4bf88ee608c4479dcba510 Mon Sep 17 00:00:00 2001 From: "victor.dias" Date: Mon, 8 Jun 2015 17:04:29 -0300 Subject: [PATCH] FIX #81, set text and bg colors of StatusBar --- src/js/services/meumobi-app.js | 24 +++++------------------- 1 file changed, 5 insertions(+), 19 deletions(-) diff --git a/src/js/services/meumobi-app.js b/src/js/services/meumobi-app.js index 10ede98..a9572cd 100644 --- a/src/js/services/meumobi-app.js +++ b/src/js/services/meumobi-app.js @@ -198,7 +198,7 @@ that.hideSplashScreen(); app.initPushwoosh(); that.statusBar(); - // that.verifyVersion(); + that.checkVersion(); }); that.receiveNotification(); //that.backButton(); @@ -212,35 +212,21 @@ },*/ hideSplashScreen: function() { if (navigator.splashscreen) { - console.log('Hide splash screen'); navigator.splashscreen.hide(); } }, statusBar: function() { - //StatusBar.styleDefault(); // dark text, for light backgrounds - StatusBar.styleLightContent(); // light text, for dark backgrounds - //StatusBar.backgroundColorByHexString(CONFIG.STYLE.brandPrimary); StatusBar.overlaysWebView(false); + StatusBar.styleLightContent(); + StatusBar.backgroundColorByName("black"); }, receiveNotification: function() { document.addEventListener('push-notification', function(event) { $route.reload(); }); }, - verifyVersion: function() { - var device = localStorage.device ? JSON.parse(localStorage['device']) : false; - if (device && device.app_version != APP.version) { - device.app_version = APP.version; - localStorage['device'] = JSON.stringify(device); - API.Login.update(device, - function(resp) { - console.log(resp); - }, - function(err) { - console.log(err); - } - ); - } + checkVersion: function() { + console.log("[checkVersion]: " + AppVersion.version); } } };