cordova[phonegap] Setting splash screen is not working fine in ios

寵の児 提交于 2019-12-03 21:03:45

Install the splash screen plugin

cordova plugin add org.apache.cordova.splashscreen

For iOS you have to hide splash screen inside timeout function in document ready, you can define the duration after which the splashscreen should hide.

setTimeout(function() {
                navigator.splashscreen.hide();
            }, 8000);

set autohide splash to false in config.xml

<preference name="AutoHideSplashScreen" value="false" />

Refer the plugin documentation for more detail https://github.com/apache/cordova-plugin-splashscreen/blob/master/doc/index.md

If you have apple device build uisng Xcode and add sleep in main thread of app (in app delegate) and you are done with it

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!