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 #19

Open
ednalivera opened this issue Aug 11, 2015 · 2 comments
Open

Comments

@ednalivera
Copy link

window.MobileAccessibility.usePreferredTextZoom(false); is not working. Could you please help me?
Following is my code.

untitled

App.js
angular.module('checkConnection', ['ionic'])

.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
if(window.cordova && window.cordova.plugins.Keyboard) {
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
if(window.StatusBar) {
StatusBar.styleDefault();
}
if(window.MobileAccessibility){
window.MobileAccessibility.usePreferredTextZoom(false);
}
if(window.Connection){
if(navigator.connection.type==Connection.NONE){
alert("No Internet Connection is found in your device.");
ionic.Platform.exitApp();
}
if(navigator.connection.type==Connection.UNKNOWN){
alert("The Internet Connection is Unknown in your device.");
}
if(navigator.connection.type==Connection.WIFI){
alert("Your device is connected to WiFi.");
}
if(navigator.connection.type==Connection.ETHERNET){
alert("Your device is connected to Ethernet.");
}
if(navigator.connection.type==Connection.CELL_2G){
alert("Your device is connected to 2G.");
}
if(navigator.connection.type==Connection.CELL_3G){
alert("Your device is connected to 3G.");
}
if(navigator.connection.type==Connection.CELL_4G){
alert("Your device is connected to 4G.");
}
}
});
})

And when i tried to add plugin for cordova version 5.1.1 , it gives me error

@Talktomenow
Copy link

+1

@amulyadande
Copy link

i developed an app using ionic1....bt am facing prblm with font size...after installing my app in my android mobile and if am changing settings-->display-settings--->font-size---> as large/huge/small the alignment is changing/over-lapping .if it is in normal my app is pefectly alright ...i used below code to fix my issue bt it is not working fine.....thanx in advance
if(window.MobileAccessibility){
window.MobileAccessibility.usePreferredTextZoom(false);
}

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

3 participants