danielsogl / awesome-cordova-plugins

Native features for mobile apps built with Cordova/PhoneGap and open web technologies. Complete with TypeScript support.
https://danielsogl.gitbook.io/awesome-cordova-plugins/
Other
2.4k stars 2.42k forks source link

Missing http.disableRedirect feature #2022

Closed cmolina closed 6 years ago

cmolina commented 6 years ago

I'm submitting a ... (check one with "x") [ ] bug report [x ] feature request

Current behavior: Right now, HTTP doesn't have a disableRedirect method as the cordova plugin provides.

Expected behavior: HTTP.disableRedirect should be defined, and call the cordova function.

Steps to reproduce:

declare const cordova;
// ...
  constructor(
    private http: HTTP,
  ) {
    // this works
    cordova.plugin.http.disableRedirect(true);
    // this doesn't work
    this.http.disableRedirect(true);
  }

Other information:

package.json info:

package.json

```json { "private": true, "scripts": { "clean": "ionic-app-scripts clean", "build": "ionic-app-scripts build" }, "dependencies": { "@angular/common": "4.1.0", "@angular/compiler": "4.1.0", "@angular/compiler-cli": "4.1.0", "@angular/core": "4.1.0", "@angular/forms": "4.1.0", "@angular/http": "4.1.0", "@angular/platform-browser": "4.1.0", "@angular/platform-browser-dynamic": "4.1.0", "@ionic-native/core": "4.2.1", "@ionic-native/geolocation": "4.0.0", "@ionic-native/google-maps": "4.2.1", "@ionic-native/http": "4.3.0", "@ionic-native/splash-screen": "4.2.1", "@ionic-native/status-bar": "4.2.1", "@ionic-native/vibration": "4.1.0", "@ionic/storage": "2.0.1", "@types/lodash": "4.14.66", "cordova-android": "6.2.3", "cordova-ios": "4.3.1", "cordova-plugin-android-permissions": "1.0.0", "cordova-plugin-compat": "1.0.0", "cordova-plugin-console": "1.0.5", "cordova-plugin-device": "1.1.4", "cordova-plugin-geolocation": "2.4.3", "cordova-plugin-sms-receiver": "0.1.6", "cordova-plugin-splashscreen": "4.0.3", "cordova-plugin-statusbar": "2.2.1", "cordova-plugin-whitelist": "1.3.1", "date-fns": "1.28.5", "intl": "1.2.5", "ionic-angular": "3.2.1", "ionic-plugin-keyboard": "2.2.1", "ionicons": "3.0.0", "lodash": "4.17.4", "ng2-pdf-viewer": "2.0.0", "ng2-rut": "0.2.1", "ng2-validation": "4.2.0", "rxjs": "5.1.1", "sw-toolbox": "3.4.0", "text-mask-addons": "3.6.0", "text-mask-core": "5.0.1", "zone.js": "0.8.12" }, "devDependencies": { "@ionic/app-scripts": "1.3.7", "@types/jasmine": "2.5.51", "@types/node": "7.0.8", "angular2-template-loader": "0.6.2", "awesome-typescript-loader": "3.2.1", "connect": "3.6.3", "cross-env": "5.0.0", "forever": "0.15.3", "html-loader": "0.4.5", "ionic": "3.12.0", "istanbul-instrumenter-loader": "2.0.0", "jasmine": "2.6.0", "jasmine-spec-reporter": "3.2.0", "karma": "1.5.0", "karma-chrome-launcher": "2.2.0", "karma-coverage": "1.1.1", "karma-coverage-istanbul-reporter": "1.3.0", "karma-htmlfile-reporter": "0.3.5", "karma-jasmine": "1.1.0", "karma-jasmine-html-reporter": "0.2.2", "karma-junit-reporter": "1.2.0", "karma-sourcemap-loader": "0.3.7", "karma-webpack": "2.0.3", "null-loader": "0.1.1", "protractor": "5.1.1", "serve-static": "1.12.4", "ts-node": "3.0.2", "tslint": "5.6.0", "typescript": "2.2.1" }, "config": { "ionic_webpack": "./webpack.config.js", "ionic_dependency_tree": "./webpack.config.js" }, "version": "0.5.0", "description": "Ripley's Bank Mobile App", "cordova": { "plugins": { "cordova-plugin-android-permissions": {}, "cordova-plugin-console": {}, "cordova-plugin-device": {}, "cordova-plugin-sms-receiver": {}, "cordova-plugin-splashscreen": {}, "cordova-plugin-statusbar": {}, "cordova-plugin-whitelist": {}, "ionic-plugin-keyboard": {}, "cordova-plugin-googlemaps": { "API_KEY_FOR_ANDROID": "***", "API_KEY_FOR_IOS": "***" }, "cordova-plugin-geolocation": { "GEOLOCATION_USAGE_DESCRIPTION": "Encuentra las sucursales más cercanas" } }, "platforms": [ "android", "ios" ] } } ```

sykaeh commented 6 years ago

This issue has been resolved, hasn't it?