Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cordova-plugin-advanced-http returns 'plugin_not_installed' with @ionic-native #1975

Closed
TonyT9 opened this issue Sep 18, 2017 · 0 comments
Closed

Comments

@TonyT9
Copy link

TonyT9 commented Sep 18, 2017

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

Current behavior:

@ionic-native/http throws a "plugin_not_installed" error when called on the cordova-advanced-http-plugin. This is due to the fact that @ionic-native/http/index.js decorates the plugin as follows:

HTTP = __decorate([
Plugin({
pluginName: 'HTTP',
plugin: 'cordova-plugin-advanced-http',
pluginRef: 'cordovaHTTP,
repo: 'https://github.com/silkimen/cordova-plugin-advanced-http',
platforms: ['Android', 'iOS']
})
], HTTP);

Expected behavior:

Steps to reproduce:

Related code:

insert any relevant code here

Other information:

Changing pluginRef: 'cordovaHTTP to pluginRef: 'cordova.plugin.http' solves the issue

package.json info:
{
"name": "ionic-hello-world",
"version": "0.0.0",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"@angular/common": "4.1.3",
"@angular/compiler": "4.1.3",
"@angular/compiler-cli": "4.1.3",
"@angular/core": "4.1.3",
"@angular/forms": "4.1.3",
"@angular/http": "4.1.3",
"@angular/platform-browser": "4.1.3",
"@angular/platform-browser-dynamic": "4.1.3",
"@ionic-native/barcode-scanner": "^4.2.1",
"@ionic-native/core": "^3.12.1",
"@ionic-native/http": "^4.2.1",
"@ionic-native/network": "^4.2.1",
"@ionic-native/splash-screen": "3.12.1",
"@ionic-native/status-bar": "3.12.1",
"@ionic/storage": "2.0.1",
"ionic-angular": "3.6.1",
"ionicons": "3.0.0",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"@ionic/app-scripts": "2.1.4",
"typescript": "2.3.4"
},
"cordovaPlugins": [
"cordova-plugin-whitelist",
"cordova-plugin-console",
"cordova-plugin-statusbar",
"cordova-plugin-device",
"cordova-plugin-splashscreen",
"ionic-plugin-keyboard",
"cordova-plugin-advanced-http"
],
"cordovaPlatforms": [],
"description": "panda: An Ionic project"
}

insert the content here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant