2017-04-05 3 views
2

VS 2015 및 Cordova CLI 6.1.1을 사용하고 있습니다. Android 나 iOS에서 작동하도록 스팸 방지 화면을 가져올 수 없습니다. 아이콘이 Android에서는 좋지만 iPhone에서는 표시되지 않습니다. 여기 내 config.xml에있다 : 나는 당신을 확신Cordova 스플래시 화면이 Android 및 iOS에도로드되지 않습니다.

<?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
<widget id="hr.studio.whatever.dev" version="1.0.4" xmlns="http://www.w3.org/ns/widgets" xmlns:cdv="http://cordova.apache.org/ns/1.0" defaultlocale="en-EN" android-versionCode="20170404"> 
    <name>Whatever</name> 
    <description> 
     An Ionic Framework and Cordova project for Visual Studio 
    </description> 
    <author email="[email protected]" href="http://taco.visualstudio.com">Visual Studio JS Mobile Tooling</author> 
    <content src="index.html" /> 
    <access origin="*" /> 
    <preference name="webviewbounce" value="false" /> 
    <preference name="UIWebViewBounce" value="false" /> 
    <preference name="DisallowOverscroll" value="true" /> 
    <preference name="android-minSdkVersion" value="15" /> 
    <preference name="BackupWebStorage" value="none" /> 
    <preference name="SplashScreen" value="screen" /> 
    <preference name="SplashScreenDelay" value="3000" /> 
    <preference name="windows-target-version" value="10.0" /> 
    <preference name="KeyboardDisplayRequiresUserAction" value="false" /> 
    <feature name="StatusBar"> 
    <param name="ios-package" onload="true" value="CDVStatusBar" /> 
    </feature> 
    <plugin name="cordova-plugin-device" spec="~1.1.2" /> 
    <plugin name="cordova-plugin-console" spec="~1.0.3" /> 
    <plugin name="cordova-plugin-whitelist" spec="~1.2.2" /> 
    <plugin name="cordova-plugin-splashscreen" spec="~3.1.0" /> 
    <plugin name="cordova-plugin-statusbar" spec="~2.1.3" /> 
    <plugin name="ionic-plugin-keyboard" spec="~2.1.0" /> 
    <platform name="android"> 
    <icon src="resources/android/icon/mipmap-ldpi/ic_launcher.png" density="ldpi" /> 
    <icon src="resources/android/icon/mipmap-mdpi/ic_launcher.png" density="mdpi" /> 
    <icon src="resources/android/icon/mipmap-hdpi/ic_launcher.png" density="hdpi" /> 
    <icon src="resources/android/icon/mipmap-xhdpi/ic_launcher.png" density="xhdpi" /> 
    <icon src="resources/android/icon/mipmap-xxhdpi/ic_launcher.png" density="xxhdpi" /> 
    <icon src="resources/android/icon/mipmap-xxxhdpi/ic_launcher.png" density="xxxhdpi" /> 
    <splash src="resources/android/splash/drawable-land-ldpi-screen.png" density="land-ldpi" /> 
    <splash src="resources/android/splash/drawable-land-mdpi-screen.png" density="land-mdpi" /> 
    <splash src="resources/android/splash/drawable-land-hdpi-screen.png" density="land-hdpi" /> 
    <splash src="resources/android/splash/drawable-land-xhdpi-screen.png" density="land-xhdpi" /> 
    <splash src="resources/android/splash/drawable-land-xxhdpi-screen.png" density="land-xxhdpi" /> 
    <splash src="resources/android/splash/drawable-land-xxxhdpi-screen.png" density="land-xxxhdpi" /> 
    <splash src="resources/android/splash/drawable-port-ldpi-screen.png" density="port-ldpi" /> 
    <splash src="resources/android/splash/drawable-port-mdpi-screen.png" density="port-mdpi" /> 
    <splash src="resources/android/splash/drawable-port-hdpi-screen.png" density="port-hdpi" /> 
    <splash src="resources/android/splash/drawable-port-xhdpi-screen.png" density="port-xhdpi" /> 
    <splash src="resources/android/splash/drawable-port-xxhdpi-screen.png" density="port-xxhdpi" /> 
    <splash src="resources/android/splash/drawable-port-xxxhdpi-screen.png" density="port-xxxhdpi" /> 
    </platform> 
    <platform name="ios"> 
    <icon src="resources/ios/icon/[email protected]" width="20" height="20" /> 
    <icon src="resources/ios/icon/[email protected]" width="20" height="20" /> 
    <icon src="resources/ios/icon/[email protected]" width="29" height="29" /> 
    <icon src="resources/ios/icon/[email protected]" width="29" height="29" /> 
    <icon src="resources/ios/icon/[email protected]" width="29" height="29" /> 
    <icon src="resources/ios/icon/[email protected]" width="40" height="40" /> 
    <icon src="resources/ios/icon/[email protected]" width="40" height="40" /> 
    <icon src="resources/ios/icon/[email protected]" width="40" height="40" /> 
    <icon src="resources/ios/icon/[email protected]" width="57" height="57" /> 
    <icon src="resources/ios/icon/[email protected]" width="57" height="57" /> 
    <icon src="resources/ios/icon/[email protected]" width="60" height="60" /> 
    <icon src="resources/ios/icon/[email protected]" width="60" height="60" /> 
    <icon src="resources/ios/icon/[email protected]" width="60" height="60" /> 
    <icon src="resources/ios/icon/[email protected]" width="76" height="76" /> 
    <icon src="resources/ios/icon/[email protected]" width="83.5" height="83.5" /> 
    <icon src="resources/ios/icon/[email protected]" width="50" height="50" /> 
    <icon src="resources/ios/icon/[email protected]" width="50" height="50" /> 
    <splash src="resources/ios/splash/[email protected]~iphone.png" height="960" width="640" /> 
    <splash src="resources/ios/splash/Default~iphone.png" height="480" width="320" /> 
    <splash src="resources/ios/splash/[email protected]~iphone.png" height="1136" width="640" /> 
    <splash src="resources/ios/splash/Default-667h.png" height="1334" width="750" /> 
    <splash src="resources/ios/splash/Default-736h.png" height="2208" width="1242" /> 
    <splash src="resources/ios/splash/[email protected]~ipad.png" height="1536" width="2048" /> 
    <splash src="resources/ios/splash/[email protected]~ipad.png" height="2048" width="1536" /> 
    <splash src="resources/ios/splash/Default-Landscape~ipad.png" height="768" width="1024" /> 
    <splash src="resources/ios/splash/Default-Landscape-736h.png" height="1242" width="2208" /> 
    <splash src="resources/ios/splash/Default-Portrait~ipad.png" height="1024" width="768" /> 
    </platform> 
    <platform name="windows"> 
    <preference name="SplashScreenBackgroundColor" value="#ffffff" /> 
    <splash src="resources/windows/splash/Splash620x300.scale-100.png" width="620" height="300" /> 
    <icon src="resources/windows/icon/logo150x150.scale-100.png" width="150" height="150" /> 
    <icon src="resources/windows/icon/logo310x310.scale-100.png" width="310" height="310" /> 
    <icon src="resources/windows/icon/logo44x44.scale-100.png" width="44" height="44" /> 
    <icon src="resources/windows/icon/logo50x50.scale-100.png" width="50" height="50" /> 
    <icon src="resources/windows/icon/logo30x30.scale-100.png" width="30" height="30" /> 
    <icon src="resources/windows/icon/logo71x71.scale-100.png" width="71" height="71" /> 
    <icon src="resources/windows/icon/wide310x150.scale-100.png" width="310" height="150" /> 
    </platform> 
    <plugin name="cordova-plugin-ace" version="0.1.2" src="https://github.com/adnathan/ace" /> 
    <preference name="deployment-target" value="9.0" /> 
</widget> 

, 나는 이중 확인했습니다 트리플 내 프로젝트 폴더에 사진의 위치를 ​​확인 :

  • 자원/안드로이드/시작/*

  • 자원/IOS/아이콘/*

  • 자원/IOS/시작/*

더 이상, 나는 폴더 플랫폼 \ android \ res 에있는 모든 이미지를 오버라이드하고 같은 이름으로 내 이미지를 배치했습니다. 불운.

는 또한 config.xml 파일에서이 태그를 제거하려고 :

<preference name="SplashScreen" value="screen" /> 

시작 화면이 이온의 기본이 아니라 검은 색 배경에 # 000에 비해 저 작은 라이터 어두운 배경 (그냥 빈 화면이 I 앱에서 사용)

도와주세요!

P. Splashcreen 플러그인 ver을 사용하고 있습니다. 3.1.0 (http://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/index.html)

답변

0

감사합니다, 전체 솔루션이되었다 -plugin-splashscreen, 그래서 그것을 배치했습니다. <preference name="SplashScreenDelay" value="3000" />

그건 안드로이드에서 작동하고있어, 아직 iOS에서 테스트해야합니다.

+0

iOS에서 테스트했는데 문제가 없습니다. – Dalibor

2

은 config.xml 파일에 다음 설정을 추가 : 시작 화면이 나를 위해 작동이 구성

<preference name="SplashScreen" value="screen"/> 
<preference name="AutoHideSplashScreen" value="true"/> 
<preference name="SplashShowOnlyFirstTime" value="false"/> 
<preference name="ShowSplashScreenSpinner" value="false"/> 
<preference name="FadeSplashScreen" value="false"/> 
<preference name="SplashScreenDelay" value="20000"/> 
<splash src="resources\splash.png"/> 

(이온 2.3.0 참조). 작업에 필요한 키가

<preference name="FadeSplashScreen" value="false"/> 

했다 와 나는 코르도바의 호출하기 전에 노드 <platform name="android"> 위로 이동하기 위해 필요한 : 일부에 도움이 마누엘 테이 버에

관련 문제