Splash Page Now Fades, and very slooooooowly too

  • 1
  • Question
  • Updated 5 years ago
I just made a build this morning using cli-5.2.0 (3.9.1 / 4.1.1 / 3.8.1), and I'm seeing something weird that was not there just a few days ago.

On iPhone, my splash page appears and then very slowly fades *after* my apps start page is displayed. The fade is kinda pretty and elegant and so I'm almost thankful for it. The problem is that the fade takes about 2000 ms, which is an eternity in this day and age. The end user cannot tap into the fields on my app's start page until this 2000ms fade is entirely complete.

Also, I am seeing no splash page at all on Android. My test device is a Nexus 5X running Andoird 6.0, in case that helps.
Photo of Alan Neveu

Alan Neveu, Champion

  • 213 Posts
  • 11 Reply Likes
  • kida bummed, but basically happy

Posted 5 years ago

  • 1
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
You may be using the latest, just updated splashscreen plugin, which now includes the fade feature.
https://github.com/apache/cordova-plu...

You should be able to set the duration.

Because Cordova is ahead of PGB, this plugin might not be fully compatible with PGB's Android engine, though.
See also http://cordova.apache.org/blog/
Photo of Alan Neveu

Alan Neveu, Champion

  • 213 Posts
  • 11 Reply Likes
Good info Petra, thank you. Indeed I am using the very latest and that seems to be the cause of the problem. I get no splash screen at all on Android. The fade thing is nice, but it seems that it should work that rather than a duration for showing the splash screen we should be able to specify the duration of the fade itself. Maybe it's the same thing and just a semantics issue.

I'll try specifying the previous version of this plugin for now.

Thanks!
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Alan, do you know that you can nowadays specify separate plugin versions for Android and iOS, using the PLATFORM element?

Also, I believe you can specify the fade duration using 'FadeSplashScreenDuration ' as stated in the plugin docs.
Photo of Alan Neveu

Alan Neveu, Champion

  • 213 Posts
  • 11 Reply Likes
Ahhh yes, that is exactly what I was looking for. Thank you Petra! I definitely like the experience of having the splash screen fade, so I might use the PLATFORM element in order to take advantage of that on iOS. But I also hate to branch like that because the possibility exists of never coming back and updating it until something breaks... But that's my issue, so thanks for your help Petra!