관리 메뉴

플랫폼공작소 IT Blog

[Cordova] inappbrowser Cannot read property 'open' of undefined 본문

mobile/Cordova

[Cordova] inappbrowser Cannot read property 'open' of undefined

솜픽(Sompic) 플랫폼공작소 2017. 12. 12. 18:31
document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
window.open = cordova.InAppBrowser.open;
var ref2 = cordova.InAppBrowser.open(encodeURI('http://ja.m.wikipedia.org/wiki/ハングル'), '_blank', 'location=yes');
}

inappbrowser Cannot read property 'open' of undefined


you have to write the code in document.addEventListener ... ! 


reference : https://stackoverflow.com/questions/37439043/cordova-inapp-browser-throws-error

0 Comments
댓글쓰기 폼