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

Window.MobileAccessibility.usePreferredTextZoom(false) is not working for several android devices. #50

Open
hitenzaptech opened this issue Feb 18, 2020 · 8 comments

Comments

@hitenzaptech
Copy link

I used this function to restrict the system setting of font size.
And this is perfectly working fine in iOS devices but for Android this is not working properly in several devices.
I tested in One Plus 3 (Android Version: 9.0.0) and Samsung Galaxy J7 Crown (Android Version: 8.0.0) and MobileAccessibility.usePreferredTextZoom(false) is not working in these devices.

@hitenzaptech hitenzaptech changed the title Window.MobileAccessibility.usePreferredTextZoom(false) is not working for several android device. Window.MobileAccessibility.usePreferredTextZoom(false) is not working for several android devices. Feb 18, 2020
@SjefFransen1
Copy link

I have got the same issues here for the Cubot King Kong (android 8.0.0) and the Samsung Galaxy J7 (android version 9.0.0)

@teknekale
Copy link

same issue here, Pixel 2, Android 10

@bangzipsa
Copy link

same issue here, Samsung Note10+, Android 10

@spinninghamster
Copy link

Looks like the end of this plugin? Since it hasn't been updated for years.

@ang3lx
Copy link

ang3lx commented Jan 5, 2021

this is the only way to solve zoom problem?

@spinninghamster
Copy link

Has anyone found a solution?

@guoxz
Copy link

guoxz commented Sep 22, 2022

I fixed this problem like following:
platforms\android\CordovaLib\src\org\apache\cordova\engine\SystemWebViewEngine.java

private void initWebViewSettings() {
settings.setTextZoom(100); // Disable Page Font Scaling
}

@saleem1989
Copy link

Thanks, Guoxz it's working for me! , Genius :) .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

8 participants