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

                    SQL error code 1064 with creating Laravel foreign keysForeign key constraints: When to use ON UPDATE and ON DELETEDropping column with foreign key Laravel error: General error: 1025 Error on renameLaravel SQL Can't create tableLaravel Migration foreign key errorLaravel php artisan migrate:refresh giving a syntax errorSQLSTATE[42S01]: Base table or view already exists or Base table or view already exists: 1050 Tableerror in migrating laravel file to xampp serverSyntax error or access violation: 1064:syntax to use near 'unsigned not null, modelName varchar(191) not null, title varchar(191) not nLaravel cannot create new table field in mysqlLaravel 5.7:Last migration creates table but is not registered in the migration table

                    은진 송씨 목차 역사 본관 분파 인물 조선 왕실과의 인척 관계 집성촌 항렬자 인구 같이 보기 각주 둘러보기 메뉴은진 송씨세종실록 149권, 지리지 충청도 공주목 은진현