Skip to content

Commit

Permalink
FIX #81, set text and bg colors of StatusBar
Browse files Browse the repository at this point in the history
  • Loading branch information
victor.dias committed Jun 8, 2015
1 parent 56691ea commit 20e8e3a
Showing 1 changed file with 5 additions and 19 deletions.
24 changes: 5 additions & 19 deletions src/js/services/meumobi-app.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@
that.hideSplashScreen();
app.initPushwoosh();
that.statusBar();
// that.verifyVersion();
that.checkVersion();
});
that.receiveNotification();
//that.backButton();
Expand All @@ -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);
}
}
};
Expand Down

0 comments on commit 20e8e3a

Please sign in to comment.