Phonegap & Cordova - How to remove default splash screen?

。_饼干妹妹 提交于 2019-12-11 13:37:41

问题


When I used to start up my app, it would show the common splash screen: https://www.google.com/search?biw=1366&bih=667&tbm=isch&sa=1&q=cordova+android+splash+screen&oq=cordova+android+splash+screen&gs_l=img.3...3442.4414.0.4584.0.0.0.0.0.0.0.0..0.0....0...1c.1.64.img..0.0.0.HlLmVH4tGUs#imgrc=HJeAimnld9GDKM%3A

Now it seems it cuts off about 1/10th of the top of the image and covers the screen with it for the initial few seconds, THEN my app starts normally, like so:

I have been ignoring it until I finished the app, now I am nearly done publishing and wish to fix this issue.

I was wondering if there is a way to take out the splash screen entirely. I tried removing the pictures from res/xml and adding

<preference name="SplashScreen" value="none"/>

but doesn't work.

This is for an android app.

I am going to make it for iOS soon after I finish and publish for android, so if they are different methods for different platforms, please include.


回答1:


The Cordova documentation about icons and splash screens is:

https://cordova.apache.org/docs/en/latest/config_ref/images.html

but if you need more control over splash screens (via JS) you can add this plugin:

https://github.com/apache/cordova-plugin-splashscreen



来源:https://stackoverflow.com/questions/35680290/phonegap-cordova-how-to-remove-default-splash-screen

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