Comments (8)
I experienced this issue as well. I was getting two different splashes, first is native ios and then cordova splash, which did not scale and was shown as logo being off-center. Solution for me was:
- (may be optional) Add "Default@3x
universalanyany.png" (2208x2208) as well to config.xml and resource folder. This asset should be smaller then @2x as referenced in cordova docs. If it uses 2x (2732X2732), which worked ok in cordova-ios@6+, it is actually too big , and you experience first black screen and then white screen because splash screen is not appropriately read. So my config for ios splash is:
<splash src="resources/ios/splash/Default@2x~universal~anyany.png"/> <splash src="resources/ios/splash/Default@3x~universal~anyany.png"/>
- (needed) I found a fork in which a feature for rotating splash screens is reverted (was introduced in 7.0.0 I think) https://github.com/jessyefuster/cordova-ios/commits/7.1.1
I imagine this will be merged soon to main project and everything will be well again. Hope it helps someone in the meanwhile as I was stuck with this for one week.
from cordova-ios.
running into the same issue. Was hoping Cordova Resources would do the trick, but no luck :(
from cordova-ios.
can you provide a sample app?
from cordova-ios.
Any idea what it could be?
from cordova-ios.
Any idea what it could be?
Hmm. First, I would try to reinstall Cordova/ios
What I noticed with my Cordova IOS is that I had to manually add the respective splash screen, after running Cordova Resources. Seems like a bug in Cordova/iOS but I am also still running Ionic 6. So it could be a compatibility issue.
from cordova-ios.
Could you give me a clearer idea of how you solved it?
Since I installed everything fresh, but it only happens when I upgrade to version 7
When you refer to adding the splash screen manually, what do you mean?
Sorry for the inconvenience, I've really been dealing with this for a long time and I need to solve it.
@taxman007 Thanks if you can help me
from cordova-ios.
Hi, i was stucked on same error some hours and is related to documentation, you need add to config.xml all the spash images manually in actual size in your platform ios, the size of each image you can find in https://cordova.apache.org/docs/en/6.x/reference/cordova-plugin-splashscreen/
Take special attemption between universal and iphone are different, like:
Default@2x~universal~anyany.png
is 2732px X 2732px
Default@2x~iphone~anyany.png
is 1334px X 1334px
Each image are on root project / res / screen / ios
I add this to my config:
<platform name="ios"> <splash src="res/screen/ios/Default@2x~universal~anyany.png" /> <splash src="res/screen/ios/Default@2x~universal~comany.png" /> <splash src="res/screen/ios/Default@2x~universal~comcom.png" /> <splash src="res/screen/ios/Default@3x~universal~anyany.png" /> <splash src="res/screen/ios/Default@3x~universal~anycom.png" /> <splash src="res/screen/ios/Default@3x~universal~comany.png" /> <splash src="res/screen/ios/Default@2x~iphone~anyany.png" /> <splash src="res/screen/ios/Default@2x~iphone~comany.png" /> <splash src="res/screen/ios/Default@2x~iphone~comcom.png" /> <splash src="res/screen/ios/Default@3x~iphone~anyany.png" /> <splash src="res/screen/ios/Default@3x~iphone~anycom.png" /> <splash src="res/screen/ios/Default@3x~iphone~comany.png" /> <splash src="res/screen/ios/Default@2x~ipad~anyany.png" /> <splash src="res/screen/ios/Default@2x~ipad~comany.png" /> </platform>
from cordova-ios.
I had the same error, but I don't use SplashScreen.
My solution is: go to Info.plist, set the value of 'Launch screen interface file base name' to be 'CDVLaunchScreen', instead of 'CDVLaunchScreen.storyboard', delete '.storyboard', everything goes on smoothly then~
from cordova-ios.
Related Issues (20)
- Please remove org_apache_cordova_UIView_Extension because it isn't necessary since iOS 8.
- Cannot run new iOS app since latest upgrade HOT 18
- Trouble to open Instagram App HOT 2
- Any alternative to CDVCommandDelegateImpl which is removed from public classes? HOT 6
- [Next Major] Delete bin/cordova_plist_to_config_xml script
- Several template project bin scripts are broken
- Add preferences to config.xml to control which are the "Supported Destinations"
- Issue with `<privacy-manifest>` and `cordora prepare ios` HOT 3
- The CDVURLProtocol no longer exists, so how should we modify the interception? HOT 3
- The startURLSchemeTask method in CDVURLSchemeHandler was not executed HOT 2
- Copy deployment-target from root config.xml to platform-specific config.xml before usage in Podfile HOT 5
- WKWebViewConfiguration is always ignored
- Missing API declaration on iOS app submission to App Store HOT 5
- CDVPlugin's viewController should just be a CDVViewController
- CDVWebViewUIDelegate should take a CDVViewController
- Cordova ios 7.1.0 - Build failed with "Command failed with exit code 65" HOT 4
- Several version checks fail after cordova-ios platform add [email protected] HOT 2
- Target Identity info missing Display Name, Version, Build HOT 1
- plugin_not_installed errors after upgrading from 6.3.0 HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-ios.