새소식

mobile/🤖 Cordova

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

728x90
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

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.