Attualmente sto bloccando lo splash screen quando spingo al mio dispositivo iOS. Mi sono assicurato di installare ngCordova tramite bower install e tutte le emulazioni ioniche funzionano come previsto. Solo quando viene distribuito su un dispositivo iOS, rimane bloccato sullo schermo iniziale. Ho incluso la sintassi corretta per lo splash screen nel file config.xmlapp ios ionica bloccata sullo splash screen - funziona nell'emulatore non sul dispositivo iphone 5s
<preference name="AutoHideSplashScreen" value="false" />
<feature name="SplashScreen">
<param name="ios-package" value="CDVSplashScreen" onload="true"/>
</feature>
e ho il seguente nei miei principali app.js presentare
.run(function($ionicPlatform, $cordovaSplashscreen, $timeout) {
$ionicPlatform.ready(function() {
$cordovaSplashscreen.hide();
(escluso il resto della contenuti nella .run)
versione ionico - 1.2.8
versione Cordova - 4.0.0
Ecco l'out mettere in Xcode per l'emulazione iOS di lavoro:
2014-11-10 17:09:15.150 endevr[94986:627339] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Data/Application/027864C5-CC64-4859-BCEA-48D8DD4B90A2/Library/Cookies/Cookies.binarycookies
2014-11-10 17:09:15.291 endevr[94986:627339] Apache Cordova native platform version 3.6.3 is starting.
2014-11-10 17:09:15.292 endevr[94986:627339] Multi-tasking -> Device: YES, App: YES
2014-11-10 17:09:15.304 endevr[94986:627339] Unlimited access to network resources
2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][splashscreen] 48.977017ms
2014-11-10 17:09:15.631 endevr[94986:627339] [CDVTimer][TotalPluginStartup] 49.114048ms
2014-11-10 17:09:15.691 endevr[94986:627339] Resetting plugins due to page load.
2014-11-10 17:09:15.886 endevr[94986:627339] Finished load of: file:///Users/drlightx3/Library/Developer/CoreSimulator/Devices/7D2185B9-9897-41E8-B005-B0D35284F661/data/Containers/Bundle/Application/6EE8A114-222C-4903-88EC-9EEF8853B76C/endevr.app/www/index.html#/app/browse
Poi, quando ho costruire a un un vero e proprio iPhone 5S ottengo il seguente:
2014-11-10 17:09:43.691 endevr[973:264078] DiskCookieStorage changing policy from 2 to 0, cookie file: file:///private/var/mobile/Containers/Data/Application/8512E3E3-FF06-4BDF-94DD-B999AD55ADCC/Library/Cookies/Cookies.binarycookies
2014-11-10 17:09:43.857 endevr[973:264078] Apache Cordova native platform version 3.6.3 is starting.
2014-11-10 17:09:43.859 endevr[973:264078] Multi-tasking -> Device: YES, App: YES
2014-11-10 17:09:43.868 endevr[973:264078] Unlimited access to network resources
2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][splashscreen] 92.771947ms
2014-11-10 17:09:44.067 endevr[973:264078] [CDVTimer][TotalPluginStartup] 93.294024ms
2014-11-10 17:09:44.342 endevr[973:264078] Resetting plugins due to page load.
2014-11-10 17:09:44.696 endevr[973:264078] Finished load of: file:///private/var/mobile/Containers/Bundle/Application/2BD18E5C-94C7-467D-83D5-617E3BD15434/endevr.app/www/index.html
guardando l'ultima riga di ogni uscita, esso doesn Sembra che il #/app/browse di ui-router venga colpito su iPhone 5S e non riesco a capire perché. Quando eseguo ionic serve
e ionic emulate ios
, tutto viene eseguito correttamente, ma una volta premuto sul mio telefono attuale, si blocca sullo schermo iniziale.
Non sono nemmeno arrivato allo splash screen. Mi sono bloccato sullo schermo scuro quando ho ottenuto "****** RUN SUCCEEDED *****" nella CLI. –