[Solved] Splash screen blank

yeah, work like charm thank you bro

Could you please share your configuration for the splash screen and the fix that you have done to make it work? My app loads forever, it takes minutes to load a splash screen and then minutes with a white screen :frowning:

Which version of ionic are you using?

Automatically ionic put in our config.xml this:

<preference name="SplashScreenDelay" value="0"/>

And in the plugin docs said:

To disable the splashscreen add the following preference to config.xml:
<preference name="SplashScreenDelay" value="0"/>

Then the solution is remove this line in config.xml or change value from 0 to any value (3000 by default), note also that this value used to be seconds, and not milliseconds, so values less than 30 will still be treated as seconds. ( Consider this a deprecated patch that will disapear in some future version. )

1 Like

Thanks a lot for your description!

I’m not sure what i’m doing wrong, but i only see the Cordova Icon and when i opn the app i only see the Cordova splash screen, not sure what i’m doing wrong, any help will be much appreciated.

Howard

@huehue found out recently that there is most probably a bug in the last version of the splash screen plugin when it goes to the icon on android

see

Hey :slight_smile:

Yup, it’s a bug in cordova-android. But it’s fixed already and you can update to the latest commit on master with the following commands:

cordova platform rm android
cordova platform add https://github.com/apache/cordova-android.git#master
3 Likes

i see this in command, should i update?

i see this in command Warning: using prerelease platform android@6.2.0-dev.
Use ‘cordova platform add android@latest’ to add the latest published version instead.

Now i’m getting this error when i run the app to device

BUILD FAILED

Total time: 4.179 secs

A problem occurred configuring root project ‘android’.

You have not accepted the license agreements of the following SDK components:
[Google Repository, SDK Patch Applier v1].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Error: cmd: Command failed with exit code 1 Error output:
FAILURE: Build failed with an exception.

  • What went wrong:
    A problem occurred configuring root project ‘android’.

You have not accepted the license agreements of the following SDK components:
[Google Repository, SDK Patch Applier v1].
Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

  • Try:
    Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

Mess up my project now :frowning:

Woohoo i got the error fixed and now i’m seeing my icon and splash screen :grin::grin::grin:

Thank you guys.

Howard

Hi ! Did not work for me !

@Rappadappa77 how did you manage to fix this error?. . got the same error after using @latest repo, i think this is for the signing license agreement in android…

I installed ionic latest, also update my anadroid SDK, I installed the latest API and the splash screen is not displayed.
Do you have any update?

Hello @ihadeed,
I have same issue in splash screen.
I have created splash.png files
then ionic resources --splash
that created Splash images with different android screen size images
but after that problem is that splash screen image doesnt store in platforms/android/res/

so that splash screen not coming android app.

1 Like

Ok, same here with latest ionic, maybe a problem with the ionic resources command ?
This is really mandatory, we don’t want to add manually our assets for slpash/icon :confused:

But, for all other, you have the res folder on root of project after use the command, and so just drag it to android res build folder to update splash/icons.

there are github issues for that:

its worked for me .but before i tried

  1. cordova plugin remove cordova-plugin-splashscreen
  2. cordova plugin add cordova-plugin-splashscreen

but no luck

1 Like

Hi

You would be requiring the download the latest resources for API level 25.

for me issue is fixed.

Hi, Pankaj. I’m having the same issue - getting white blank screen. Please let me know what needs to be update or the link?

At the same time I’m getting this error…

Application Error!

Anyone have solution? Thanks!