Ionic Capacitor - using Cordova pluginsIonic2 cordova-plugin-advanced-http not workingIonic CallNumber Native Cordova plugin not working - Ionic 3, Angular 4How to capture an image or record video with Ionic 3Ionic Cordova Health Plugin - Not working on Ionic DevAppIonic-app-scripts not found error after installing Ionic cordova in-app-browser pluginType Error Object not a function when adding SMS plugin IonicDependency plugin version error - When installing phonegap-push plugin to an existing Ionic app that has firebase-analytics plugin already installedinstalled barcode scanner plugin with capacitor, pwa complain cordova not availableStatus bar overlays webview on iOS with Capacitor
Jumping frame contents with beamer and pgfplots
Why is tomato paste so cheap?
In books, how many dragons are there in present time?
Is there ever any indication in the MCU as to how Spider-Man got his powers?
Is there anything special about -1 (0xFFFFFFFF) regarding ADC?
Wireless headphones interfere with Wi-Fi signal on laptop
51% attack - apparently very easy? refering to CZ's "rollback btc chain" - How to make sure such corruptible scenario can never happen so easily?
Automatically anti-predictably assemble an alliterative aria
Program which behaves differently in/out of a debugger
High Memory Utilization in Juniper ACX2100
Are there any established rules for splitting books into parts, chapters, sections etc?
Why are solar panels kept tilted?
Solubility in different pressure conditions
What's tha name for when you write multiple voices on same staff? And are there any cons?
Why was Endgame Thanos so different than Infinity War Thanos?
Non-deterministic Finite Automata | Sipser Example 1.16
Can a tourist shoot a gun in the USA?
Where to find every-day healthy food near Heathrow Airport?
Why did the metro bus stop at each railway crossing, despite no warning indicating a train was coming?
What was the significance of Varys' little girl?
What is the largest number of identical satellites launched together?
How to cope with regret and shame about not fully utilizing opportunities during PhD?
How exactly does artificial gravity work?
What is the best way for a skeleton to impersonate human without using magic?
Ionic Capacitor - using Cordova plugins
Ionic2 cordova-plugin-advanced-http not workingIonic CallNumber Native Cordova plugin not working - Ionic 3, Angular 4How to capture an image or record video with Ionic 3Ionic Cordova Health Plugin - Not working on Ionic DevAppIonic-app-scripts not found error after installing Ionic cordova in-app-browser pluginType Error Object not a function when adding SMS plugin IonicDependency plugin version error - When installing phonegap-push plugin to an existing Ionic app that has firebase-analytics plugin already installedinstalled barcode scanner plugin with capacitor, pwa complain cordova not availableStatus bar overlays webview on iOS with Capacitor
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I am attempting to use @ionic-native/http
on iOS and Web with no success. App starts on both platforms, but the plugin does not work.
Dependencies
- capacitor: "^1.0.0-beta.19"
- @ionic/angular: "^4.1.0"
- @angular: "^7.2.2"
- @ionic-native: "^5.0.0"
- @ionic/angular-toolkit: "~1.4.0"
I hope that covers the most important ones.
Steps to reproduce
App
ionic start myApp tabs
npm install --save @capacitor/cli @capacitor/core
npm run build --prod
npx cap init <name> <id>
npx cap add ios
npx cap copy
npx cap open ios
- general -> signing -> team
Plugin
npm install cordova-plugin-advanced-http
npm install @ionic-native/http
npx cap sync
- Use it as shown in here
According to the documentation (which I might have misunderstood) that should be it.
Issues
When attempting to call an API:
Web
Native: tried calling HTTP.get, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
I know I don't use Cordova per se but shouldn't it be covered by npx cap sync
?
iOS
[error] - ERROR "line":38,"column":38,"sourceURL":"capacitor://localhost/tab2-tab2-module.js"
angular cordova ionic-framework capacitor
add a comment |
I am attempting to use @ionic-native/http
on iOS and Web with no success. App starts on both platforms, but the plugin does not work.
Dependencies
- capacitor: "^1.0.0-beta.19"
- @ionic/angular: "^4.1.0"
- @angular: "^7.2.2"
- @ionic-native: "^5.0.0"
- @ionic/angular-toolkit: "~1.4.0"
I hope that covers the most important ones.
Steps to reproduce
App
ionic start myApp tabs
npm install --save @capacitor/cli @capacitor/core
npm run build --prod
npx cap init <name> <id>
npx cap add ios
npx cap copy
npx cap open ios
- general -> signing -> team
Plugin
npm install cordova-plugin-advanced-http
npm install @ionic-native/http
npx cap sync
- Use it as shown in here
According to the documentation (which I might have misunderstood) that should be it.
Issues
When attempting to call an API:
Web
Native: tried calling HTTP.get, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
I know I don't use Cordova per se but shouldn't it be covered by npx cap sync
?
iOS
[error] - ERROR "line":38,"column":38,"sourceURL":"capacitor://localhost/tab2-tab2-module.js"
angular cordova ionic-framework capacitor
add a comment |
I am attempting to use @ionic-native/http
on iOS and Web with no success. App starts on both platforms, but the plugin does not work.
Dependencies
- capacitor: "^1.0.0-beta.19"
- @ionic/angular: "^4.1.0"
- @angular: "^7.2.2"
- @ionic-native: "^5.0.0"
- @ionic/angular-toolkit: "~1.4.0"
I hope that covers the most important ones.
Steps to reproduce
App
ionic start myApp tabs
npm install --save @capacitor/cli @capacitor/core
npm run build --prod
npx cap init <name> <id>
npx cap add ios
npx cap copy
npx cap open ios
- general -> signing -> team
Plugin
npm install cordova-plugin-advanced-http
npm install @ionic-native/http
npx cap sync
- Use it as shown in here
According to the documentation (which I might have misunderstood) that should be it.
Issues
When attempting to call an API:
Web
Native: tried calling HTTP.get, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
I know I don't use Cordova per se but shouldn't it be covered by npx cap sync
?
iOS
[error] - ERROR "line":38,"column":38,"sourceURL":"capacitor://localhost/tab2-tab2-module.js"
angular cordova ionic-framework capacitor
I am attempting to use @ionic-native/http
on iOS and Web with no success. App starts on both platforms, but the plugin does not work.
Dependencies
- capacitor: "^1.0.0-beta.19"
- @ionic/angular: "^4.1.0"
- @angular: "^7.2.2"
- @ionic-native: "^5.0.0"
- @ionic/angular-toolkit: "~1.4.0"
I hope that covers the most important ones.
Steps to reproduce
App
ionic start myApp tabs
npm install --save @capacitor/cli @capacitor/core
npm run build --prod
npx cap init <name> <id>
npx cap add ios
npx cap copy
npx cap open ios
- general -> signing -> team
Plugin
npm install cordova-plugin-advanced-http
npm install @ionic-native/http
npx cap sync
- Use it as shown in here
According to the documentation (which I might have misunderstood) that should be it.
Issues
When attempting to call an API:
Web
Native: tried calling HTTP.get, but Cordova is not available. Make sure to include cordova.js or run in a device/simulator
I know I don't use Cordova per se but shouldn't it be covered by npx cap sync
?
iOS
[error] - ERROR "line":38,"column":38,"sourceURL":"capacitor://localhost/tab2-tab2-module.js"
angular cordova ionic-framework capacitor
angular cordova ionic-framework capacitor
asked Mar 23 at 13:22
BielikBielik
137214
137214
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
I was lucky to finally find some more information.
iOS
I am not really sure why, but this additional plugin helped https://github.com/sneas/ionic-native-http-connection-backend. Requests can be made through HttpClient
and they use Cordova plugin so that they bypass proxy.
Web
Capacitor won't work on the browser according to https://github.com/ionic-team/capacitor/issues/767#issuecomment-415481452
So my assumption that it will was wrong. Previously mentioned plugin will delegate requests through HttpClient
so it is nice workaround for the browser, although won't fix CORS issue.
CORS issue at this point can be handled by a proxy.
add a comment |
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55314162%2fionic-capacitor-using-cordova-plugins%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I was lucky to finally find some more information.
iOS
I am not really sure why, but this additional plugin helped https://github.com/sneas/ionic-native-http-connection-backend. Requests can be made through HttpClient
and they use Cordova plugin so that they bypass proxy.
Web
Capacitor won't work on the browser according to https://github.com/ionic-team/capacitor/issues/767#issuecomment-415481452
So my assumption that it will was wrong. Previously mentioned plugin will delegate requests through HttpClient
so it is nice workaround for the browser, although won't fix CORS issue.
CORS issue at this point can be handled by a proxy.
add a comment |
I was lucky to finally find some more information.
iOS
I am not really sure why, but this additional plugin helped https://github.com/sneas/ionic-native-http-connection-backend. Requests can be made through HttpClient
and they use Cordova plugin so that they bypass proxy.
Web
Capacitor won't work on the browser according to https://github.com/ionic-team/capacitor/issues/767#issuecomment-415481452
So my assumption that it will was wrong. Previously mentioned plugin will delegate requests through HttpClient
so it is nice workaround for the browser, although won't fix CORS issue.
CORS issue at this point can be handled by a proxy.
add a comment |
I was lucky to finally find some more information.
iOS
I am not really sure why, but this additional plugin helped https://github.com/sneas/ionic-native-http-connection-backend. Requests can be made through HttpClient
and they use Cordova plugin so that they bypass proxy.
Web
Capacitor won't work on the browser according to https://github.com/ionic-team/capacitor/issues/767#issuecomment-415481452
So my assumption that it will was wrong. Previously mentioned plugin will delegate requests through HttpClient
so it is nice workaround for the browser, although won't fix CORS issue.
CORS issue at this point can be handled by a proxy.
I was lucky to finally find some more information.
iOS
I am not really sure why, but this additional plugin helped https://github.com/sneas/ionic-native-http-connection-backend. Requests can be made through HttpClient
and they use Cordova plugin so that they bypass proxy.
Web
Capacitor won't work on the browser according to https://github.com/ionic-team/capacitor/issues/767#issuecomment-415481452
So my assumption that it will was wrong. Previously mentioned plugin will delegate requests through HttpClient
so it is nice workaround for the browser, although won't fix CORS issue.
CORS issue at this point can be handled by a proxy.
answered Mar 23 at 14:08
BielikBielik
137214
137214
add a comment |
add a comment |
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55314162%2fionic-capacitor-using-cordova-plugins%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown