Ios platform ready中的Ionic splashscreen hide()方法';行不通

Ios platform ready中的Ionic splashscreen hide()方法';行不通,ios,cordova,ionic-framework,splash-screen,Ios,Cordova,Ionic Framework,Splash Screen,平台准备好后,我无法隐藏splashscreen。这只是ios上的问题,仅在testflight应用程序上。我不能在本地用cordova 10建造它。当我用cordova 9在本地构建应用程序时(这是唯一的区别),这种方法是有效的 this.platform.ready().then(() => { this.splashscreen.hide() }); 我确信所有导入都正常,所有都已安装 package.json:“cordova ios”:“^6.1.0”,“cordova插

平台准备好后,我无法隐藏splashscreen。这只是ios上的问题,仅在testflight应用程序上。我不能在本地用cordova 10建造它。当我用cordova 9在本地构建应用程序时(这是唯一的区别),这种方法是有效的

this.platform.ready().then(() => {
   this.splashscreen.hide()
});
我确信所有导入都正常,所有都已安装

package.json:“cordova ios”:“^6.1.0”,“cordova插件splashscreen”:“^6.0.0”

config.xml-splashscreen值

<preference name="SplashMaintainAspectRatio" value="true" />
<preference name="FadeSplashScreenDuration" value="1000" />
<preference name="SplashShowOnlyFirstTime" value="false" />
<preference name="SplashScreen" value="screen" />
<preference name="AutoHideSplashScreen" value="false" />
<preference name="loadUrlTimeoutValue" value="700000" />
<preference name="SplashScreenDelay" value="30000" />
<preference name="DisallowOverscroll" value="true" />
<preference name="FadeSplashScreen" value="false" />


有人知道吗?我尝试添加setTimout,但它不起作用。

我们遇到了相同的问题。科尔多瓦-ios@6.x他们。这也可以在最新的文档中看到

我们发现对
.hide()
的调用似乎会在
SplashScreenDelay
之后触发隐藏。因此,如果您取消了
SplashScreenDelay
设置,我打赌您对
Hide()
的调用将按照您的预期开始工作(因为您已经将
AutoHideSplashScreen
设置为false)

如果你像我一样,你想要自动隐藏能力和手动调用隐藏的能力,你可以考虑只在一个定时器中触发一个<代码> .HIDED()/<代码>,它将作为备份计划(如果你的其他<代码>。两次调用

.hide()
似乎没有负面影响

    //Poor-man's Auto-Hide
    Observable.timer(15000).subscribe(()=>{
        this.splashScreen.hide();
    });