I am working on an Android mobile application that uses Dave Johnson Facebook Connect Plugin ( https: //github.com/davejohnson/phoneg ... ), Camera and FileTransfer. Basically, the user clicks the "Capture" button (the camera starts the camera, the user takes a picture), then this photo is uploaded to the server. The problem is that for the first time everything is in order, but when I press the button again to take the second photo, the photo cannot be uploaded to the server, and the error returned from FileTransfer is error code 3.
I set options.chunkedMode = false; It does not help.
I know this is a connection error, I redirected the domain that I upload to the /res/xml/cordova.xml file. I searched a lot on the Internet to find a working solution, other people complain about it, but there is no working solution. I am using Cordova 1.8.1 (I also tested with 1.8.0, 1.7.0, 1.6.1, 1.5.0). I tested with newer versions of Phonegap, for example, 1.9.0, but I can’t build a project - the facebook plugin does not work with this version of Phonegap. I am testing using Android 4.1 emulator (API 16). I tried different things to make it work while I look at the magazines in detail, but I could not get it to work. I am trying to find a solution because it is very important, please help me solve this problem. Thank you in advance for your answers.
source
share