Phonegap에서 만들어진 플러그인을 Cordova로 변경할때
exec호출하는 부분을 Phonegap.exec에서 cordova.exec로 변경
addConstructor 없어짐
대신
if(!window.plugins) {
window.plugins = {};
}
if (!window.plugins.pdfViewer) {
window.plugins.pdfViewer = new PdfViewer();
}
이런 식으로 windows.plugins 초기화 시키고
플러그인 초기화
'개발자로 살기' 카테고리의 다른 글
윈도우8 크롬용 앱 Cross domain 문제 해결 (0) | 2013.07.20 |
---|---|
failed to get the task for process (0) | 2013.07.18 |
Could not launch *.app – No such file or directory 해결책 (0) | 2013.05.30 |
Could not change executable permissions on the application (1) | 2013.04.22 |
sencha touch 안드로이드 버전에서 iconCls 안나올때 (0) | 2013.04.17 |