-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
HTTP Plugin reference fix #1934
Conversation
@ihadeed Hi there, is this already published via npm? Thanks! |
@flowli no, it will be published soon. Tonight, or tomorrow. |
Still not published on npm :( |
Quick fix to all.
|
Another quick fix, but without changing sources at node_modules folder: Add these two lines in your import { HTTP } from '@ionic-native/http';
HTTP.getPluginRef = () => "cordova.plugin.http"; |
I am still getting this error with the reference fix? |
I'm still getting the 'plugin_not_installed' error but only in Android. The reference in the wrapper is already fixed. Any clues? |
Also getting this error, in spite of quick-fixes. Does anybody have an alternative to include native Http requests in ionic3? Thanks. |
If you are using the latest versions of ionic native and the cordova plugin, it should already be fixed. Did you try to do a clean install? # repeat the following command for all platforms
ionic cordova platform rm android
rm -rf node_modules/ platforms/ plugins/ www/
npm install
# repeat the following command for all platforms
ionic cordova platform add android |
Thanks a lot for the quick reply, @elin-y. The clean install worked perfectly. Everything fixed now. |
I am getting a same error even after trying all the solutions available!
Plugin and node modules versions
Even the reference is pointing to the proper plugin.
|
@marutifh did you find a solution? |
@diogomgbrito With the clean reinstall, its working fine. |
It worked fine for me as well, turns out the problem was that the http call was made before the platform was ready somehow! Thanks @marutifh :) |
Thanks a lot, this worked for me. I am not getting "plugin not installed" anymore but now I am getting the following error: "Json error". Any idea how I can get around this? Thanks. |
I had that issue because I was requesting it before |
thanks man ..i was setting it before ready put it in then of platform.ready promise return
|
Fixes PR #1921 wrong plugin reference