有可能從科爾多瓦Android應用程序和設置其他的.html爲初始頁面移除閃屏?從科爾多瓦應用中移除閃屏
我已經嘗試從config.xml中移除:在config.xml中
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
,並設置:
<preference name="SplashScreen" value="none"/>
,並仍然得到splash.html爲默認或初始頁面。
有可能從科爾多瓦Android應用程序和設置其他的.html爲初始頁面移除閃屏?從科爾多瓦應用中移除閃屏
我已經嘗試從config.xml中移除:在config.xml中
<plugin name="SplashScreen" value="org.apache.cordova.SplashScreen"/>
,並設置:
<preference name="SplashScreen" value="none"/>
,並仍然得到splash.html爲默認或初始頁面。
如果您不需要閃屏插件,再次嘗試刪除它和建築應用:
cordova plugin remove splashscreen
cordova build android
我希望這可以幫助你!
當我試圖科爾多瓦插件刪除閃屏,我得到錯誤:當前的工作目錄是不是基於科爾多瓦項目。 –
這必須在應用程序路徑內完成。 – jcarrera
您使用的科爾多瓦或PhoneGap的?有*一些*差異。我相信(根據過去24小時的試驗/錯誤),config.xml文件在使用phonegap構建服務時會得到緩存,因此,除非刪除應用程序並重新添加,否則無法識別對config.xml的任何更改。 –
我正在使用cordova @fiprojects –
在你的config.xml中,索引你的主頁?我的意思是:。如果您將值更改爲splash.html,可能是問題所在。 –
jcarrera