调用 hideSplashScreen() 后,英特尔 XDK 启动画面仍然显示;

Intel XDK splash screen still shows after calling hideSplashScreen();

我使用了以下函数调用来隐藏启动画面,但是当我构建应用程序时,它仍然出现。我已取消选择 SplashScreen Cordova 插件。我还缺少其他步骤吗?谢谢!

<script>               
    function onDeviceReady(){
        intel.xdk.device.hideSplashScreen();   
    }        
    document.addEventListener("intel.xdk.device.ready", onDeviceReady, false);        
</script>

确保为您的应用选择了合适的插件。不要使用此功能的 Intel XDK 版本(基本插件),它已被弃用。请改用 Cordova 版本(启动画面插件)。

此函数将与 Cordova 或 XDK 函数一起使用:

app.hideSplashScreen = function() {
    "use strict" ;

    // see https://github.com/01org/appframework/blob/master/documentation/detail/%24.ui.launch.md
    // Do the following if you disabled App Framework autolaunch (in index.html, for example)
    // $.ui.launch() ;

    if( navigator.splashscreen && navigator.splashscreen.hide ) {   // Cordova API detected
        navigator.splashscreen.hide() ;
    }
    if( window.intel && intel.xdk && intel.xdk.device ) {           // Intel XDK device API detected, but...
        if( intel.xdk.device.hideSplashScreen )                     // ...hideSplashScreen() is inside the base plugin
            intel.xdk.device.hideSplashScreen() ;
    }
} ;

它源自此 XDK 模板中 init-app.js 文件内的一个类似命名的函数 > https://github.com/gomobile/template-blank-cordova-project