Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

On iPhone devices screen is zoomed in and fails to resize back after user enters input #1327

Open
shruti-talekar opened this issue May 19, 2023 · 3 comments
Labels
webkit bug Bugs that originate upstream in Apple's WebKit implementation

Comments

@shruti-talekar
Copy link

shruti-talekar commented May 19, 2023

I have ionic cordova hybrid mobile app where for iPhone devices when keyboard is launched to enter input, iPhone screen is zoomed in and after entering the input, keyboard is dismissed but the screen remains zoomed in and user has to manually resize the screen to fit the screen properly.

I have below plugins configured in my app:
"cordova-plugin-ionic-webview": "^5.0.0"
"cordova-plugin-inappbrowser": "^5.0.0",
"cordova-plugin-ionic-keyboard": "^2.2.0",
"cordova-plugin-ionic-webview": "^5.0.0",
"cordova-plugin-screen-orientation": "^3.0.2",
"cordova-plugin-statusbar": "^2.4.3",
"cordova-ios": "^6.3.0",

I have set meta name="viewport" tag value as below:
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"

@dpogue
Copy link
Member

dpogue commented May 19, 2023

What is the value of your meta name="viewport" tag?

@shruti-talekar
Copy link
Author

shruti-talekar commented May 19, 2023

I have set meta name="viewport" tag value as below:
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"

@dpogue
Copy link
Member

dpogue commented May 19, 2023

hmm, in theory that should work, but Apple sometimes overrides those preferences for accessibility reasons 😞

I'm not sure if there's anything Cordova can do to change the WKWebView behaviour

@dpogue dpogue added the webkit bug Bugs that originate upstream in Apple's WebKit implementation label Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
webkit bug Bugs that originate upstream in Apple's WebKit implementation
Projects
None yet
Development

No branches or pull requests

2 participants