Closed jacquesdev closed 6 years ago
Check your splash screen settings. If you are using Legacy Launch Images you may need to switch to Launch storyboard
Also, I got it working with Legacy Launch images by adding
<splash height="2436" src="resources/ios/splash/Default-2436h.png" width="1125" />
<splash height="1125" src="resources/ios/splash/Default-Landscape-2436h.png" width="2436" />
in config.xml, but having different issue on iPhoneX sim as mentioned here https://github.com/apache/cordova-plugin-splashscreen/pull/135#issuecomment-346744923
@saurabhgupta050890, thank you for that suggestion. Just to confirm though, I would guess if that was the case, just my loading/splash screen would be affected, and look incorrect, and the rest of the app would work ok.
Or is the implication that if your loading screen image was wrong/not updated it would affect your whole app layout?
I guess if you are using cordova-plugin-splashscreen then iphonex has black borders if spalsh screen is not configured correctly, haven't tried removing this though
Please refer this for more details: https://stackoverflow.com/questions/46232812/cordova-app-not-displaying-correctly-on-iphone-x-simulator/46232813
It's taken me probably 30 hours of work to get my v1 project working in iphone-x, Here are some tips:
for reference, if you're doing an ionic v1 project $ ionic --version 3.18.0
$ cordova --version 7.1.0
$ ionic cordova plugin list cordova-plugin-splashscreen 3.1.0 "Splashscreen" cordova-plugin-device 1.1.1 "Device"
@jacquesdev have you found your problem? is this really connected with the splash screen?
Update: My problem was a missing splash screen, now the app is full screen 👍
thanks @saurabhgupta050890 !
@lpsBetty - no have not yet found the issue (but did not look into the splash screen issue). But with your update I will have to try it!!!! Thanks!
@jacquesdev sorry I really thought that the splash screen solved the problem, because after adding the splash screen it worked on the iPhone X simulator! I had no real device,... and now found out, that it is still not full screen on the iPhone X!
I have no idea why it works with the simulator and not on the actual device 🤨 fixing it without a device seems quite impossible for me.. 😅
@jacquesdev I got the app fullscreen on the device by using the latest PhoneGap 8.0.0 => https://blog.phonegap.com/phonegap-8-0-0-now-on-phonegap-build-ios-upgraded-to-xcode-9-2-9f350f5f775d
Thanks @lpsBetty, it looks like that means upgrading to cordova-android@7, and unfortunately there are still a couple of plugins that I use that have not yet been updated to support that. But I guess that is the only way, so I will look at doing that update in the near future and close the issue assuming it works.
Check the splash screen setting, and adding:
in config.xml.
@pvandrunen - probably a stupid question, but when you install npm install ionic-angular@legacy, my understanding is that it will install ionic to node_modules, which is at the same level as www (where the project's index file lives).
How do you include the ionic library in your ionic project's index file, because when I last to check you can't include anything above the www folder?
Turns out - this was all related to the splash screen config (which to be honest still doesn't make sense why the splash screen should determine the resolution of your entire app). I basically followed the steps here: https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-splashscreen/, with the main thing being I had to manually add the entry to config.xml... Thanks for everyone's help on this issue!
For anyone else experiencing this, I found an easy solution for myself. In Xcode you just need to make sure that CDVLaunchScreen is selected in the two areas I have highlighted here. For me they were blank before.
For me, setting Launch Screen File
is enough.
@BraydenGirard have you found a solution to automatically set this? I have to manually take care of the selection after every cordova build ios
.
@donni106 I usually manually set it, there are a couple things I manually set in Xcode cause I haven’t had the time to figure out the cordova stuff. Sorry I can’t be more helpful.
Short description of the problem:
My app is still not displaying as expected on the iPhone X simulator in XCode, after going through the ionic ios-11 checklist. http://blog.ionicframework.com/ios-11-checklist/
What behavior are you expecting?
I expect to app to stretch to the full height of the iPhone X.
Steps to reproduce:
<meta name="viewport" content="viewport-fit=cover, width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
cordova-plugin-statusbar@2.3.0
cordova-plugin-splashscreen@4.1.0
gulp-clean-css
One strange thing I want to mention which seems to be giving a warning but still working is this: $ ionic cordova build ios [WARN] Not performing Ionic build for project type: ionic1.
But then it carries on and builds as expected without any errors?
I have now run out of ideas, any help would be appreciated.
Which Ionic Version? 1.x or 2.x Ionic 1
Run
ionic info
from terminal/cmd prompt: (paste output below)