简体   繁体   中英

IBM Worklight 6.0 - Issue in controlling the splash screen in iOS

I want to perform some validation in background and then navigate to specified dashboard, during the time the splash screen is shown to the user.

The problem is that after some time the splash screen hides automatically.

Tried Approaches:

  1. Set the preference in config.xml:

    • <preference name="auto-hide-splash-screen" value="false"/> or
    • <preference name="AutoHideSplashScreen" value="false"/>

  2. Rather than hiding on "ondeviceready" event , tried to hide in my JavaScript code at certain condition:

function getResponse(response) {

 if (response) { } else { $.mobile.changePage("#pageID", { transition: "none", changeHash: false }); navigator.splashscreen.hide(); } 

}

My problem is that the splash screen gets hidden automatically, even though navigator.splashscreen.hide(); is not called on the deviceready event.

由于平台当前正在处理启动画面,因此Worklight当前不支持扩展启动画面的持续时间的功能。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM