ionic-framework icon indicating copy to clipboard operation
ionic-framework copied to clipboard

[rc2] Splash screen not working in android

Open jlno opened this issue 10 years ago • 17 comments

ionic start myApp --v2 ionic platform add android ionic resources ionic run android

Splash screen is not shown.

jlno avatar Nov 06 '16 23:11 jlno

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.

ghenry22 avatar Nov 07 '16 06:11 ghenry22

@jlno Are you using cordova android 6.0?

jgw96 avatar Nov 07 '16 10:11 jgw96

@jgw96 I'm having the same problem with cordova-android 6.0, i think it's a duplicate with driftyco/ionic-cli#1608

eweap avatar Nov 07 '16 10:11 eweap

@jgw96 cordova 6.4.0

jlno avatar Nov 07 '16 10:11 jlno

The same problem here. App icon also does not work.

jonatastrafaniuc avatar Nov 08 '16 12:11 jonatastrafaniuc

Same problem here:

Works with:

  • ionic 2.0.0 + cordova 6.3.1

Does not work with:

  • ionic 2.0.0 + cordova 6.4.0
  • ionic 2.1.0 + cordova 6.4.0
  • ionic 2.1.0 + cordova 6.3.1

JulienPalard avatar Nov 08 '16 15:11 JulienPalard

Same issue here.

NeoLSN avatar Nov 09 '16 06:11 NeoLSN

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.

ghenry22 avatar Nov 09 '16 12:11 ghenry22

Upgrade to android platform 6.1.0 How to do this?

workfluo avatar Nov 09 '16 13:11 workfluo

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"

workfluo avatar Nov 09 '16 13:11 workfluo

Ionic platform remove android Ionic platform add [email protected]

ghenry22 avatar Nov 09 '16 15:11 ghenry22

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.

jgw96 avatar Nov 09 '16 15:11 jgw96

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.

martinlombana avatar Nov 14 '16 14:11 martinlombana

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

ghenry22 avatar Nov 14 '16 14:11 ghenry22

If you still have the problem, check out my comment: https://github.com/driftyco/ionic-cli/issues/1608#issuecomment-261503645

florentsuc avatar Nov 18 '16 10:11 florentsuc

@JulienPalard same problem for me with corodva6.4.0. Downgrade to 6.3.1, everything is ok.

chrisbenseler avatar Dec 16 '16 14:12 chrisbenseler

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.

ionitron-bot[bot] avatar Sep 05 '18 18:09 ionitron-bot[bot]