I want to show spinner on splash screen using ionic framework in android.Here is my config file:
<content src="index.html"/>
<access origin="*"/>
<preference name="splashScreen" value="screen"/>
<preference name="SplashScreenDelay" value="10000"/>
<preference name="AutoHideSplashScreen" value="false"/>
<preference name="webviewbounce" value="false"/>
<preference name="UIWebViewBounce" value="false"/>
<preference name="DisallowOverscroll" value="true"/>
<preference name="BackupWebStorage" value="none"/>
<preference name="SplashScreen" value="screen"/>
<preference name="ShowSplashScreenSpinner" value="true"/>
<feature name="StatusBar">
<param name="ios-package" value="CDVStatusBar" onload="true"/>
</feature>
use
<preference name="ShowSplashScreenSpinner" value="true" />
in your config.xml
$ ionic plugin add org.apache.cordova.splashscreen
<preference name="AutoHideSplashScreen" value="false" /> <preference name="ShowSplashScreenSpinner" value="false" />
angular.module('starter.controllers', [])
.run(function($ionicPlatform) { $ionicPlatform.ready(function() { setTimeout(function() { navigator.splashscreen.hide(); }, 300); }); })
ios
$
ionic cordova build ios
Or $ionic cordova run ios
Android
$
ionic cordova build android
Or $ionic cordova run android
For Details
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With