Splash screen problem (blank, not working)

Hello,

Before i realize something wrong i tried every tutorial in this forum. Then i realize something wrong in this area since i just do this;

$ ionic start myApp tabs
$ cd myApp
$ ionic platform add android
$ ionic build android
$ ionic emulate android

it gives error about splash screen;

:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

:compileDebugJavaWithJavacNote: G:\dev\vericert\testapp3\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

If you $ ionic build android again, you dont see these errors anymore but even default splash screens does not work. Its blank.

If you want to see these messages again, just do;

$ ionic state reset

It will remove platform and plugins folders and build them again using package.json. then do;

$ ionic build android

and you will see these messages again.

So what i’m doing wrong?
1 - Yes my java home env variable is setted,
2 - Yes i put icon.png and splash.png just like in described and do $ ionic resources command to build them automatically. (btw it should show default if i dont do these, its not showing default either)

I’m just talking about creating new app with default template and it gives an error while building and does not show default splash screens.

Thank you for help.

The compile warnings CordovaLib:compileDebugJavaWithJavacNote aren’t anything to worry about, they’re just warnings for the cordova folks.

So nothing to really worry about there.

Are you saying that the splash screen is not showing as well?

Hello,

Yes, my splash screen with default “cordova-plugin-splashscreen” written in package.json when i “ionic start myapp tabs” does not work. Its just blank screen.

I didn’t get it when you said cordova folks. The warning said SplashScreen and i thought its related about this warning.

Anyway, i just replace that line “cordova-plugin-splashscreen” in the package.json with “org.apache.cordova.splashscreen” then “ionic state reset” and its start working. I don’t know what is the difference between these 2 plugin. Default one is new and the mine is old i guess.

If i don’t have any other problem with my building platform which is windows, Ionic version 1.7.14 cordova version 6.0.0 npm version 3.7.2 node version v4.3.0, you can easily reproduce the problem. Just create a new project with;

ionic start myapp tabs
cd myapp
ionic platform add android
put icon.png and splash.png in resource folder (i get these images from your blog post :http://blog.ionic.io/automating-icons-and-splash-screens/ and edit them with photoshop and save them as png file.)
ionic resources
ionic emulate android

Its just blank screen.

Also, in case my emulator have some problem with this i install this test project using adb to my mobile. Its also blank splash screen.

Best regards.

Hi!

Are there any news on this issue?
I have exactly the same problem… Maybe its just an android platform problem? So many people dont care about… :frowning:

Lg
Harald

That solved the issue for me too! Thanks!

not for me :frowning:
it says:
Error executing “cordova plugin add org.apache.cordova.splashscreen”:
Error: Registry returned 404 for GET on https://registry.npmjs.org/org.apache.cordova.splashscreen

People/Companies are liberating themselfs from npm so its possible maybe its removed/deleted by the owner or npm admins. Some reasons: https://medium.com/@azerbike/i-ve-just-liberated-my-modules-9045c06be67c#.1f9b0q2ne

Reverting to 3.0.0 fixed it for me!

Just want to note the proper command I ran was:
cordova plugin rm cordova-plugin-splashscreen
ionic plugin add cordova-plugin-splashscreen@3.0.0

1 Like

projectName\platforms\android\res -> (I used android) change all screen png with the ones generated by ionic resources --splash in the ProjectName\resources\android\splash and then Build. Works like magic to me :wink:

hi, in my app - splash screen is staying nearly 1minute and am using autohidesplashscreen = false.
will u plz help me, thanku