PhoneGap File Transfer Error 1, where to write FileTransfers?

空扰寡人 提交于 2019-12-06 11:33:05
Suhas

Hey take a look at my answer over here -

Phonegap - Save image from url into device photo gallery

and let me know. If there is still any problem. Include following in your config.xml

For Android -

<feature name="http://api.phonegap.com/1.0/file" />
<feature name="File">
       <param name="android-package" value="org.apache.cordova.file.FileUtils" />
</feature>
<feature name="FileTransfer">
      <param name="android-package" value="org.apache.cordova.filetransfer.FileTransfer" />
</feature>
<feature name="Storage">
       <param value="org.apache.cordova.Storage" name="android-package"/>
</feature>

For IOS-

<plugin name="File" value="CDVFile" />
<plugin name="FileTransfer" value="CDVFileTransfer" />

For checking network connection available or not add following in your config.xml - add permissions in plugin.xml and plugins name in config.xml

Plugin to check Network connection For Android -

<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.READ_PHONE_STATE" />
<plugin name="NetworkStatus" value="org.apache.cordova.NetworkManager" />

For IOS -

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