I have a mobile app build with phonegap (cordova) and the app is live on app store, but this new feature of iOS10 beta:
To improve accessibility on websites in Safari, users can now pinch-to-zoom even when a website sets user-scalable=no in the viewport.
make the app zoomable and it totally broke the design of the app when zoomed.
Maybe this is a feature for websites on mobile (or not), but I want to be able to disable this for a hybrid mobile app
This is how the viewport
looks like in index.html
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, target-densitydpi=medium-dpi, width=device-width, height=device-height" />
Is there a known solution to resolve this problem for the new iOS that will be released soon?
I am using WkWebView
and
<engine name="ios" spec="~3.9.2" />
<preference name="phonegap-version" value="cli-5.2.0" />
UPDATE
I updated phonegap to version 6.3.0 and ios platform version to 4.1.1 and I have the same error.
use user-scalable=no
as the following code :
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With