https://github.com/driftyco/ionic/issues/365
@vko-online : somehow I‘ve managed to find a possible workaround but I must admit that there are some cases that the keyboard shows up.
Here‘s my config:
app.js file
angular.module(‘coraxApp‘, [‘ionic‘, ‘ngStorage‘, ‘ngCordova‘, ‘ngAnimate‘])
.run(function($ionicPlatform, $cordovaFile) {
$ionicPlatform.ready(function() {
ionic.Platform.isFullScreen = false;
})
.config([‘$localStorageProvider‘, ‘$stateProvider‘, ‘$httpProvider‘, ‘$urlRouterProvider‘, ‘$locationProvider‘, ‘$compileProvider‘, ‘$ionicConfigProvider‘, function($localStorageProvider, $stateProvider, $httpProvider, $urlRouterProvider, $locationProvider, $compileProvider, $ionicConfigProvider) {
$ionicConfigProvider.scrolling.jsScrolling(false);
}]);
config.xml file
<preference name="android-windowSoftInputMode" value="adjustPan|stateAlwaysHidden" /> <preference name="Fullscreen" value="false" /> <preference name="KeyboardDisplayRequiresUserAction" value="true" />
原文:http://my.oschina.net/u/811958/blog/524739