Android 隐藏splashscreen phonegap v3

Android 隐藏splashscreen phonegap v3,android,ios,cordova,Android,Ios,Cordova,我正在努力确保我的启动屏幕不会显示在iOS phonegap v3中 我已按照中的建议尝试了以下方法: 其中包括安装 我马上打电话躲起来 navigator.splashscreen.hide() 项目布局 ¬ res ¬ icon config.xml <gap:plugin name="org.apache.cordova.splashscreen" /> <feature name="SplashScreen"> <param name="a

我正在努力确保我的启动屏幕不会显示在iOS phonegap v3中

我已按照中的建议尝试了以下方法:

其中包括安装

我马上打电话躲起来

navigator.splashscreen.hide()
项目布局

¬ res
   ¬ icon
config.xml

<gap:plugin name="org.apache.cordova.splashscreen" />
<feature name="SplashScreen">
    <param name="android-package" value="org.apache.cordova.splashscreen.SplashScreen" />
    <param name="ios-package" value="CDVSplashScreen" />
</feature>

请注意,没有splash文件夹。但是,启动屏幕将始终显示并同时显示默认的phonegap启动屏幕,而不是跳过它


值得一提的是,我正在通过

进行构建,我认为——强调思考——你不能这样做。您可以通过使用与应用程序颜色匹配的单一颜色的启动屏幕来伪造它。

在调用
navigator.splashscreen.hide()
之前,是否确实触发了
devicerady
事件?在触发该事件后立即调用
.hide()
,应该会得到您要查找的结果

此外,您还可以尝试将splashscreen插件完全替换为cordova的新替代品:

cordova.exec(null,null,“SplashScreen”,“hide”,[])

cordova.exec
命令直接挂接到不同的设备本机环境中

更详细地解释了参数:


有趣的。。。exec函数是电话本机函数的直接挂钩。这看起来不错!
function(winParam) {} - Success function callback. Assuming your exec call completes successfully, this function will be invoked (optionally with any parameters you pass back to it)
function(error) {} - Error function callback. If the operation does not complete successfully, this function will be invoked (optionally with an error parameter)
"service" - The service name to call into on the native side. This will be mapped to a native class.
"action" - The action name to call into. This is picked up by the native class receiving the exec call, and, depending on the platform, essentially maps to a class's method.
[/* arguments */] - Arguments to get passed into the native environment