如何告诉Cordova不要自动隐藏启动画面?

时间:2014-07-16 03:10:21

标签: javascript cordova

我的config.xml中有以下内容......

  <feature name="SplashScreen">
    <param name="ios-package" value="CDVSplashScreen"/>
    <param name="onload" value="true" />
  </feature>
  <preference name="auto-hide-splash-screen"    value="false" />
  <preference name="AutoHideSplashScreen"       value="false" />
  <preference name="SpalshScreenDelay"          value="60000" />

  <gap:splash src="res/screen/ios/screen-iphone-portrait.png"   gap:platform="ios"     width="320" height="480" />
  <gap:splash src="res/screen/ios/screen-iphone-portrait-2x.png"   gap:platform="ios"     width="640" height="960" />
  <gap:splash src="res/screen/ios/screen-iphone-portrait-568h-2x.png"  gap:platform="ios"     width="640" height="1136" />
  <gap:splash src="res/screen/ios/screen-ipad-portrait.png"  gap:platform="ios"     width="768" height="1024" />
  <gap:splash src="res/screen/ios/screen-ipad-landscape.png"  gap:platform="ios"     width="1024" height="768" />

  <gap:plugin name="org.apache.cordova.splashscreen" />

当我在设备上打开应用程序时,我会看到启动画面...但它会自行关闭,我不会调用任何javascript来关闭它。它应该永远说出来。

这是我在设备日志中看到的:

Jul 15 17:04:41 iPad-5 TRAF[2615] <Warning>: Multi-tasking -> Device: YES, App: YES
Jul 15 17:04:41 iPad-5 TRAF[2615] <Warning>: Unlimited access to network resources
Jul 15 17:04:41 iPad-5 TRAF[2615] <Warning>: Fix applied for database locations?: YES
Jul 15 17:04:41 iPad-5 TRAF[2615] <Warning>: [CDVTimer][file] 5.380988ms
Jul 15 17:04:41 iPad-5 TRAF[2615] <Warning>: [CDVTimer][splashscreen] 27.823985ms
Jul 15 17:04:41 iPad-5 TRAF[2615] <Warning>: [CDVTimer][TotalPluginStartup] 37.027001ms
Jul 15 17:04:41 iPad-5 TRAF[2615] <Warning>: Resetting plugins due to page load.
Jul 15 17:04:43 iPad-5 TRAF[2615] <Warning>: Finished load of: file:///var/mobile/Applications/662EC33F-CC74-42C4-83F0-4D4EC759EF80/TRAF.app/www/index.html#/

我不希望关闭启动画面,直到我告诉它。因此,我正在阅读我拥有config.xml的方式应该可行,但是... nada。

有什么想法吗?

0 个答案:

没有答案