Github user agrieve commented on a diff in the pull request: https://github.com/apache/cordova-plugin-file-transfer/pull/60#discussion_r23775743 --- Diff: src/android/FileTransfer.java --- @@ -316,7 +317,23 @@ public void run() { conn.setRequestProperty("Content-Type", "multipart/form-data; boundary=" + BOUNDARY); // Set the cookies on the response - String cookie = CookieManager.getInstance().getCookie(target); + boolean gotCookie = false; + String cookie = null; + Class webViewClass = webView.getClass(); + try { + Method gcm = webViewClass.getMethod("getCookieManager"); + ICordovaCookieManager cm = (ICordovaCookieManager)gcm.invoke(webView); --- End diff -- We'll need to make the code just a little be more complicated and hard to read still, since pre-4.0.0 cordova-android users will get a compile error looking for the ICordovaCookieManager symbol :(
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cordova.apache.org For additional commands, e-mail: dev-h...@cordova.apache.org