diff --git a/CHANGELOG.md b/CHANGELOG.md index 9dcf7c1..a846529 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # Changelog +## 2.0.9 + +- Fixed #204: broken support for cordova-android < 7.0 + ## 2.0.8 - Fixed #198: cookie header is always passed even if there is no cookie diff --git a/package.json b/package.json index 90079ce..22d5991 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-advanced-http", - "version": "2.0.8", + "version": "2.0.9", "description": "Cordova / Phonegap plugin for communicating with HTTP servers using SSL pinning", "scripts": { "updatecert": "node ./scripts/update-test-cert.js", diff --git a/src/android/com/silkimen/cordovahttp/CordovaHttpPlugin.java b/src/android/com/silkimen/cordovahttp/CordovaHttpPlugin.java index cf83a4f..4f242db 100644 --- a/src/android/com/silkimen/cordovahttp/CordovaHttpPlugin.java +++ b/src/android/com/silkimen/cordovahttp/CordovaHttpPlugin.java @@ -150,7 +150,7 @@ public class CordovaHttpPlugin extends CordovaPlugin { private boolean setClientAuthMode(final JSONArray args, final CallbackContext callbackContext) throws JSONException { CordovaClientAuth runnable = new CordovaClientAuth(args.getString(0), args.getString(1), this.cordova.getActivity(), - this.cordova.getContext(), this.tlsConfiguration, callbackContext); + this.cordova.getActivity().getApplicationContext(), this.tlsConfiguration, callbackContext); cordova.getThreadPool().execute(runnable);