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;








0















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



  1. ionic start myApp tabs

  2. npm install --save @capacitor/cli @capacitor/core

  3. npm run build --prod

  4. npx cap init <name> <id>

  5. npx cap add ios

  6. npx cap copy


  7. npx cap open ios

    • general -> signing -> team


Plugin



  1. npm install cordova-plugin-advanced-http

  2. npm install @ionic-native/http

  3. npx cap sync

  4. 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"









share|improve this question




























    0















    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



    1. ionic start myApp tabs

    2. npm install --save @capacitor/cli @capacitor/core

    3. npm run build --prod

    4. npx cap init <name> <id>

    5. npx cap add ios

    6. npx cap copy


    7. npx cap open ios

      • general -> signing -> team


    Plugin



    1. npm install cordova-plugin-advanced-http

    2. npm install @ionic-native/http

    3. npx cap sync

    4. 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"









    share|improve this question
























      0












      0








      0








      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



      1. ionic start myApp tabs

      2. npm install --save @capacitor/cli @capacitor/core

      3. npm run build --prod

      4. npx cap init <name> <id>

      5. npx cap add ios

      6. npx cap copy


      7. npx cap open ios

        • general -> signing -> team


      Plugin



      1. npm install cordova-plugin-advanced-http

      2. npm install @ionic-native/http

      3. npx cap sync

      4. 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"









      share|improve this question














      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



      1. ionic start myApp tabs

      2. npm install --save @capacitor/cli @capacitor/core

      3. npm run build --prod

      4. npx cap init <name> <id>

      5. npx cap add ios

      6. npx cap copy


      7. npx cap open ios

        • general -> signing -> team


      Plugin



      1. npm install cordova-plugin-advanced-http

      2. npm install @ionic-native/http

      3. npx cap sync

      4. 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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 23 at 13:22









      BielikBielik

      137214




      137214






















          1 Answer
          1






          active

          oldest

          votes


















          0














          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.







          share|improve this answer























            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
            );



            );













            draft saved

            draft discarded


















            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









            0














            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.







            share|improve this answer



























              0














              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.







              share|improve this answer

























                0












                0








                0







                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.







                share|improve this answer













                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.








                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 23 at 14:08









                BielikBielik

                137214




                137214





























                    draft saved

                    draft discarded
















































                    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.




                    draft saved


                    draft discarded














                    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





















































                    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







                    Popular posts from this blog

                    Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

                    Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

                    Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript