The application crash has to come from your code because i just tested a clean project setup with the splashscreen plugin and there is no issue.
Before you start working on a project you should read the very informative readme which is available for every single cordova plugin.
So you want to set the splashscreen duration to another value, no problem. Like it is described in the Cordova Splashscreen-Plugin Documentation.
navigator.splashscreen.show();
and
setTimeout(function() {
navigator.splashscreen.hide();
}, 2000);
will do the trick. I would recommend you to call the splashscreen directly after the deviceReady
-Event. Then you should start with your first function and include the ...show()
inside it. The ...hide()
goes into your last function and thats all.
Here you're able to find the preferences for your config.xml
- iOS Quirks
Before you use the commands above watch out for the deviceReady-Event which is obligatory for the Splashscreen commands to work!