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
.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
The text was updated successfully, but these errors were encountered:
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);
}
window.MobileAccessibility.usePreferredTextZoom(false); is not working. Could you please help me?
Following is my code.
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
The text was updated successfully, but these errors were encountered: