You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 4, 2022. It is now read-only.
We are working on a long term fix, but for those needing a solution today, here is what you should do (for tabbed apps in portrait mode):
First, read our iOS 11 blog and follow the steps on installing WKWebView, the updated status bar plugin, and the viewport fit meta tag change. WKWebView is required, but be mindful of the new CORS enforcement.
Next, add this CSS in your <head> after the Ionic CSS include:
I needed to make a few tweaks to make this work for me. There was a 20px white bar at the top of the ion-content, and the bottom of the ion-content was partially-covered by the tabs.
I used WKWebView on Ionic v1 project. It won't let me connect to my web services even with ATS Transport set to Arbitrary Yes. Ended up uninstalling it. I have installed the ionic bower 1.3.5 in my project. I have the latest version of ionic 3.16 on my machine. May be downgrading it to ionic 1.78 would have helped. But when I tried downgrading by removing Ionic 3 and installing ionic1 - the ionic 1 would not show up in my /usr/local/bin. I am on Mac OSX. Any tips?
@sbasi5576 that's due to WKWebView enforcing CORS (like a normal browser). To get around that, add localhost:8080 to your allowed origins on the server
@stripathix, I would guess not since the splash screen probably shows up before app.js executes. You might be able to do that with cordova-plugin-splashscreen and then define the splash screen for landscape iPhone X in config.xml.
@josandretto thanks for the help. Anyways now I am doing this by a shell script to manipulate .plist file.
cd platforms cd ios cd WeatherSpork.xcodeproj sed -i "" '/AdSupport.framework/d' project.pbxproj sed -i "" '/libAdIdAccess/d' project.pbxproj cd .. cd WeatherSpork sed -i "" '1,/UIInterfaceOrientationLandscapeLeft/{/UIInterfaceOrientationLandscapeLeft/d;}' WeatherSpork-Info.plist sed -i "" '1,/UIInterfaceOrientationLandscapeRight/{/UIInterfaceOrientationLandscapeRight/d;}' WeatherSpork-Info.plist
Hey folk! Since the original issue posted here has been solved, I'm going to lock this issue. If you have questions regarding anything WKWebview related, please post them on the Forum! Thanks!
Activity
[-]rounded edges of the iPhone X on ionic[/-][+]Rounded edges of the iPhone X on ionic[/+]revie commentedon Sep 19, 2017
These suggestions from Stack Overflow seemed to help:
https://stackoverflow.com/questions/46232812/cordova-app-not-displaying-correctly-on-iphone-x-simulator
Still got a whole lot of Ionic v1 absolute positioning styles to override, but it's something at least. Best of luck!
kensodemann commentedon Sep 23, 2017
We recently went through and cleaned up this experience for Ionic v3. See this post for details https://blog.ionic.io/ios-11-checklist/
Some (but not all) of that is also applicable to v1.
Next week, we will be going through v1 and making adjustments there for iOS 11 and the iPhone X. I will keep you posted on that progress.
kas84 commentedon Sep 27, 2017
Thanks! That's awesome!!
mlynch commentedon Sep 29, 2017
Just added the
viewport-fit=cover
setting to viewport meta tags in app base, that's step 1mlynch commentedon Sep 29, 2017
We are working on a long term fix, but for those needing a solution today, here is what you should do (for tabbed apps in portrait mode):
First, read our iOS 11 blog and follow the steps on installing WKWebView, the updated status bar plugin, and the viewport fit meta tag change. WKWebView is required, but be mindful of the new CORS enforcement.
Next, add this CSS in your
<head>
after the Ionic CSS include:With these changes my starter tabs app looks like this now:
Note
This is not an official fix and is only a workaround.
We will have an official fix for all apps very soon, but this might help some that need something today for one reason or another
stripathix commentedon Oct 5, 2017
Please also look into landscape mode in iPhone X (IonicV1). Side nav is not good either.
ruairisdad commentedon Oct 17, 2017
Thanks!
I needed to make a few tweaks to make this work for me. There was a 20px white bar at the top of the ion-content, and the bottom of the ion-content was partially-covered by the tabs.
ion-content.padding.scroll-content.ionic-scroll.has-header.has-tabs { top: calc(44px + constant(safe-area-inset-top)); } ion-content.padding.scroll-content.ionic-scroll.has-header.has-tabs { bottom: calc(49px + constant(safe-area-inset-bottom)); }
I just locked down the app to portrait mode so I wouldn't need to worry about the notch in landscape mode
mark-veenstra commentedon Oct 17, 2017
@mlynch When will there be the official update on v1?
smuaq commentedon Oct 24, 2017
Coming soon I guess: https://twitter.com/mhartington/status/920070473609830401
mlynch commentedon Oct 24, 2017
Yep, release incoming very soon (this week)
mhartington commentedon Oct 25, 2017
Hi everyone! 1.3.4 has been released with the necessary iPhoneX updates.
Please update your bower package to
ionic-team/ionic-bower#1.3.4
and run bower install, or runmobidev111 commentedon Oct 25, 2017
Great. Can you publish it to npm? At least v1.3.2 is available at the ionic-angular package
30 remaining items
mhartington commentedon Nov 2, 2017
I think you might have something wonky in the setup.
is working fine on my end.
mhartington commentedon Nov 2, 2017
bower install ionic-team/ionic-bower#1.3.5
should fix the css padding issue.mobidev111 commentedon Nov 2, 2017
please publish this version to npm as well - sorry for bugging..
mhartington commentedon Nov 2, 2017
npm i ionic-angular@legacy
seatechdev commentedon Nov 5, 2017
I used WKWebView on Ionic v1 project. It won't let me connect to my web services even with ATS Transport set to Arbitrary Yes. Ended up uninstalling it. I have installed the ionic bower 1.3.5 in my project. I have the latest version of ionic 3.16 on my machine. May be downgrading it to ionic 1.78 would have helped. But when I tried downgrading by removing Ionic 3 and installing ionic1 - the ionic 1 would not show up in my /usr/local/bin. I am on Mac OSX. Any tips?
stripathix commentedon Nov 6, 2017
For Ionic1 footer is not right with iPhoneX:
stripathix commentedon Nov 6, 2017
Is it possible to disable Landscape mode for iPhoneX only?
josandretto commentedon Nov 6, 2017
@stripathix, yes. You can use cordova-plugin-screen-orientation to set the orientation to portrait. For example something like this in app.js:
mlynch commentedon Nov 6, 2017
@sbasi5576 that's due to WKWebView enforcing CORS (like a normal browser). To get around that, add
localhost:8080
to your allowed origins on the serverstripathix commentedon Nov 6, 2017
@josandretto I guess that will not handle landscape mode splash screen or will it?
mhartington commentedon Nov 6, 2017
Orientation can be locked via the config.xml
http://cordova.apache.org/docs/en/latest/config_ref/index.html
josandretto commentedon Nov 6, 2017
@stripathix, I would guess not since the splash screen probably shows up before app.js executes. You might be able to do that with cordova-plugin-splashscreen and then define the splash screen for landscape iPhone X in config.xml.
stripathix commentedon Nov 6, 2017
@josandretto thanks for the help. Anyways now I am doing this by a shell script to manipulate .plist file.
cd platforms cd ios cd WeatherSpork.xcodeproj sed -i "" '/AdSupport.framework/d' project.pbxproj sed -i "" '/libAdIdAccess/d' project.pbxproj cd .. cd WeatherSpork sed -i "" '1,/UIInterfaceOrientationLandscapeLeft/{/UIInterfaceOrientationLandscapeLeft/d;}' WeatherSpork-Info.plist sed -i "" '1,/UIInterfaceOrientationLandscapeRight/{/UIInterfaceOrientationLandscapeRight/d;}' WeatherSpork-Info.plist
mhartington commentedon Nov 6, 2017
Hey folk! Since the original issue posted here has been solved, I'm going to lock this issue. If you have questions regarding anything WKWebview related, please post them on the Forum! Thanks!