Ionic iOS remove default splash screen

做~自己de王妃 提交于 2020-01-16 01:08:30

问题


I tried this

BUT didn't work

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

After this I also tried

ionic platform remove ios
ionic platform add ios
ionic emulate ios

But it didn't work

Other details:

vishal$ ionic -version
1.7.10

vishal$ cordova -version
5.4.0

vishal$ npm -version
2.14.7

config.xml

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<widget id="com.ionicframework.splashscreenapp489828" version="0.0.1" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0">
  <name>splashscreenApp</name>
  <description>
        An Ionic Framework and Cordova project.
    </description>
  <author email="hi@ionicframework" href="http://ionicframework.com/">
      Ionic Framework Team
    </author>
  <content src="index.html"/>
  <access origin="*"/>
  <preference name="webviewbounce" value="false"/>
  <preference name="UIWebViewBounce" value="false"/>
  <preference name="DisallowOverscroll" value="true"/>
  <preference name="android-minSdkVersion" value="16"/>
  <preference name="BackupWebStorage" value="none"/>
  <preference name="SplashScreen" value="none"/>
  <feature name="StatusBar">
    <param name="ios-package" value="CDVStatusBar" onload="true"/>
  </feature>
  <platform name="ios">
    ...
  </platform>
</widget>

Please help :(

Edit:

Tried vishal$ cordova plugin remove cordova-plugin-splashscreen But no luck :(

Plugin list:

vishal$ cordova plugin list
com.ionic.keyboard 1.0.5 "Keyboard"
com.phonegap.plugins.PushPlugin 2.5.0 "PushPlugin"
cordova-plugin-console 1.0.2-dev "Console"
cordova-plugin-inappbrowser 1.0.2-dev "InAppBrowser"
cordova-plugin-x-toast 2.2.0 "Toast"
io.litehelpers.cordova.sqlite 0.7.10 "Cordova sqlite storage plugin"

回答1:


The splash screen is provided by cordova-plugin-splashscreen. Try removing the plugin

cordova plugin remove cordova-plugin-splashscreen

Or refer to the docs on the plugin project for showing and hiding the splash screen here.



来源:https://stackoverflow.com/questions/33983340/ionic-ios-remove-default-splash-screen

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