I generated all image resources using ionic resources
, and it works fine. But the splash screen on Android is not showing (just a blank page). I tried building with both Gradle and Ant, but I get the same results. Anyone run into something like this?
I’m not facing any problem for both iOS and Android
here is what I did
In config.xml
<preference name="AutoHideSplashScreen" value="false"/>
in
$ionicPlatform.ready(function () {
inside app.js:
setTimeout(function () {
if (window.cordova)
{
$cordovaSplashscreen.hide();
}
}, 1500);
(for 1.5 seconds of splash screen)
full source: https://github.com/pliablepixels/zmNinja
That could be one solution! Nevertheless, I’d like to find a workaround that doesn’t require adding the splash screen plugin, as my splash screen was working before without it, and is working in iOS right now. I just don’t know what happened to the Android build.
The solution was to run ionic browser
, which installs crosswalk, and the splash screen plugin. Everything works fine now, but apk size is over 20Mb.