Skip to content

Commit

Permalink
Finally. Splashscreen is good.
Browse files Browse the repository at this point in the history
  • Loading branch information
jeandat committed Jan 29, 2016
1 parent e1a64bc commit 0cb90ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion app/app.run.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@
$http.defaults.cache = new CacheFactory('defaultCache', options);
}

function checkRequirements($state) {
function checkRequirements($state, $cordovaSplashscreen, $timeout) {
$state.go('tab.dash');
$timeout($cordovaSplashscreen.hide, 1000);
}


Expand Down
4 changes: 2 additions & 2 deletions config.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
<preference name="android-minSdkVersion" value="16"/>
<preference name="BackgroundColor" value="0xeeeeeeff"/>
<preference name="FadeSplashScreenDuration" value="1200"/>
<preference name="AutoHideSplashScreen" value="true"/>
<preference name="SplashScreenDelay" value="5000"/>
<preference name="AutoHideSplashScreen" value="false"/>
<preference name="xwalkVersion" value="16+"/>
<preference name="xwalkCommandLine" value="--disable-pull-to-refresh-effect"/>
<preference name="xwalkMode" value="embedded"/>
Expand All @@ -27,6 +26,7 @@
</feature>
<platform name="android">
<preference name="SplashShowOnlyFirstTime" value="false"/>
<preference name="SplashScreenDelay" value="500000"/>
<icon src="resources/android/icon/drawable-ldpi-icon.png" density="ldpi"/>
<icon src="resources/android/icon/drawable-mdpi-icon.png" density="mdpi"/>
<icon src="resources/android/icon/drawable-hdpi-icon.png" density="hdpi"/>
Expand Down

0 comments on commit 0cb90ff

Please sign in to comment.