1
.run(function($ionicPlatform) {
$ionicPlatform.ready(function() {
console.log('ionic platform ready')
alert('ready')
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard
// for form inputs)
if (window.cordova && window.cordova.plugins && window.cordova.plugins.Keyboard) {
alert('keyboard') //why is this not called in android device
cordova.plugins.Keyboard.hideKeyboardAccessoryBar(true);
}
爲什麼我的android設備中沒有調用alert('keyboard')? 我知道科爾多瓦不會被稱爲瀏覽器,但它應該在實際設備中調用嗎?離子cordova插件undefined
我試圖
alert(JSON.stringify(window.cordova.plugins))
,但它是不確定的
這做得到window.cordova.plugins沒有解決我的問題,仍然得到相同的錯誤。 – Shahroon
我也是-.- ..... –