ionic start myApp --v2
ionic platform add android
ionic resources
ionic run android
Splash screen is not shown.
I think it's actually the cordova android 6.0 platform that causes this. Ionic resource generator needs to be updated to put resources in the right place and make sure that they are used for the latest android cordova platform.
I also noticed that when the new platform is installed it creates it's own "res" folder in the root of the project and copies some files into it but they don't seem to be used.
@jlno Are you using cordova android 6.0?
@jgw96 I'm having the same problem with cordova-android 6.0, i think it's a duplicate with driftyco/ionic-cli#1608
@jgw96 cordova 6.4.0
The same problem here. App icon also does not work.
Same problem here:
Works with:
Does not work with:
Same issue here.
Upgrade to android platform 6.1.0 and this should be fixed, just updated my project, reran ionic resources and then build and all good.
Upgrade to android platform 6.1.0
How to do this?
No need for me:
My solution with a config like:
Cordova CLI: 6.4.0 + Ionic Framework Version: 2.0.0-rc.2 + Ionic CLI Version: 2.1.4;
is basically:
after the Command $ionic resource,
in config.xml for all the
REPLACE "density" by "qualifier"
AND
in
REPLACE value="screen" by value="splash"
Ionic platform remove android
Ionic platform add [email protected]
Hello all! I am going to close this issue as a duplicate of https://github.com/driftyco/ionic-cli/issues/1638. This was a regression in cordova-android
that has been fixed by the cordova team and released in 6.1.0. You can use the commands @ghenry22 posted above to update cordova-android platform.
You need to also
ionic plugin remove cordova-plugin-splashscreen
and
ionic plugin add cordova-plugin-splashscreen
after doing what ghenry22 said.
Otherwise, it does not work.
If you remove and add the platform the plugins should automatically remove and as well, I didnt need any extra steps but you never know, I have seen Cordova plugin. Issues resolved before by a simple remove/add
If you still have the problem, check out my comment: https://github.com/driftyco/ionic-cli/issues/1608#issuecomment-261503645
@JulienPalard same problem for me with corodva6.4.0. Downgrade to 6.3.1, everything is ok.
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Most helpful comment
Ionic platform remove android
Ionic platform add [email protected]