Cordova PhongGap Playbook文件传输
尝试使用2.2 SDK调用BlackBerry Playbook os 2.0中的FileTransfer方法时出错。我正在使用PhoneGap 1.4.0,我的应用程序运行良好,除了设备上的这一部分。这是我用于测试的测试函数 试验{ var myfile=新文件传输; myfile.download 'http://www.waterhobo.com/icancolor/html/images/galley2.gif', file:///accounts/1000/shared/photos/test.png, functionresult{console.log下载完成:+ result.fullPath;}, 函数错误{ console.logdownload错误源+ 错误源; console.logdownload错误目标+ 错误。目标; console.logupload错误代码+ 错误代码; } ; } 我得到的错误是:Cordova PhongGap Playbook文件传输,cordova,blackberry-playbook,Cordova,Blackberry Playbook,尝试使用2.2 SDK调用BlackBerry Playbook os 2.0中的FileTransfer方法时出错。我正在使用PhoneGap 1.4.0,我的应用程序运行良好,除了设备上的这一部分。这是我用于测试的测试函数 试验{ var myfile=新文件传输; myfile.download 'http://www.waterhobo.com/icancolor/html/images/galley2.gif', file:///accounts/1000/shared/photos/
Error: Status=2 Message=Class FileTransfer cannot be found
book.js:152download error source undefined
book.js:153download error target undefined
book.js:154upload error codeundefined
book.js:514
看起来好像在phonegap.js文件中找不到该方法,但我已经验证了它的存在
config.xml如下所示:
伊肯色
儿童活动
使用照相机
读取设备识别信息
访问共享
地理定位
有人知道吗
谢谢
tim看起来它还不受支持 我也需要这个,所以我写了这个插件,现在为我工作: 您需要的部分是blackberry.polarmobile.childbrowser插件中的.uploadFile