smchae
smchae

Reputation: 1095

Ionic Webview Loading Black Screen on Android

I am working on Ionic and I have noticed that while my app's webview is being loaded, black screen is shown. Is there a way to replace that black screen with a picture or at least to style to different color?

Thank you in advance

Upvotes: 0

Views: 534

Answers (2)

smchae
smchae

Reputation: 1095

I found a solution. I read the doc of github.com/apache/cordova-plugin-splashscreen and was able to find this line. I added that line to config.xml. If set false, it will launch splashcreen everytime.

Upvotes: 1

Vitaly Menchikovsky
Vitaly Menchikovsky

Reputation: 8934

Yes this is very easy. Its called splash screen.Take a look. if you want to auto create this screens from one image take a look on thisImage Generation, if you need progress bar also then please thake a look on this link

    angular.module('LoadingApp', ['ionic'])
.controller('LoadingCtrl', function($scope, $ionicLoading) {
  $scope.show = function() {
    $ionicLoading.show({
      template: 'Loading...'
    }).then(function(){
       console.log("The loading indicator is now displayed");
    });
  };
  $scope.hide = function(){
    $ionicLoading.hide().then(function(){
       console.log("The loading indicator is now hidden");
    });
  };
});

Upvotes: 0

Related Questions