Cordova FileTransfer Download error

喜夏-厌秋 提交于 2019-12-07 02:08:24

All the code was correct, it was a problem with my configuration of the framework:

this project had another project as library dependence. This project didn't have a config.xml file where to whitelist URLs. The library project had! I just needed to add the

<access origin="http://*.somedomain.com"></access> 

to the "right" config.xml cordova file, which was in a Library project, not in the main project itself.

In my setup, having access was not sufficient. I added plugin cordova-plugin-whitelist to my app. Then it worked fine.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!