Quantcast
Channel: Ionic Forum - Latest posts
Viewing all articles
Browse latest Browse all 228595

Status Bar doesn't work

$
0
0

Hi everybody,
I'm trying to custom the status bar of my app, and i fllow this tutorial [learn.ionicframework.com/formulas/customizing-the-status-bar/][1]

but when i deploy my app in my android phone i have a blank page instead my content.

here my code

    angular.module('starter', ['ionic', 'leaflet-directive', 'ngCordova', 'igTruncate'])


  .run(function($ionicPlatform) {
    $ionicPlatform.ready(function() {
      // Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
      // for form inputs)
      if(window.cordova && window.cordova.plugins.Keyboard) {
        cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
        window.cordova.plugins.Keyboard.disableScroll(true);
      }
      if(window.StatusBar) {
        StatusBar.styleDefault();

      }
    });
  })

 .run(function($cordovaStatusbar) {
  $cordovaStatusbar.overlaysWebView(true)

  $cordovaStatusBar.style(1) //Light
  $cordovaStatusbar.styleHex('#FF0000') //red

})

How can i do please ?


Viewing all articles
Browse latest Browse all 228595

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>