I'm building an app with Cordova and have managed to set-up splash screens on Android fine using:
<preference name="SplashScreen" value="screen" />
<preference name="SplashScreenDelay" value="5000" />
in my config.xml and this works perfectly. The splash screen is displayed for the 5 second duration specified then hides.
I have got the app set up to listen for the "deviceready" event in order to execute the rest of my code. Again, this works fine.
The issue is that "deviceready" doesn't seem to wait for the splash screen to be completed - I am aware that this is probably normal behaviour. Sometimes the splash is still visible whilst the rest of my app has continued until the 5 seconds is up.
So what I want to know is; is there a way to execute code only after the splash screen has finished displaying for at least the defined duration?
Perhaps there is another Cordova event that is raised?
** Side note - I do want to make this as cross platform as possible so I would prefer not to make Android specific fixes for this if at all possible. **