No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Intregrate backend to cordova application

    Help
    2
    7
    244
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      Dev1603 last edited by

      how to add nodejs backend environment for building cordova application ??

      dobbel 1 Reply Last reply Reply Quote 0
      • dobbel
        dobbel @Dev1603 last edited by

        @Dev1603 The same way as you would with a non Cordova Quasar application (e.g. spa, pwa website). You run a nodejs backend on a server and a quasar cordova app on your phone. Your then communicate with something like REST or Grapql between your Quasar app and the nodejs backend.

        D 1 Reply Last reply Reply Quote 0
        • D
          Dev1603 @dobbel last edited by

          @dobbel i am passing build paramerter for spa in quasar config but it is not working for cordova … do i need pass separate build parameter for cordova ??? please check below images 5b9816c6-11bf-4d50-a133-db8e967d8689-image.png & ae31d452-0b52-48ae-b694-09c9d07ff1b6-image.png

          dobbel 1 Reply Last reply Reply Quote 0
          • dobbel
            dobbel @Dev1603 last edited by

            @Dev1603 said in Intregrate backend to cordova application:

            build

            what do you mean with build paramerter ? And what does not work?

            D 1 Reply Last reply Reply Quote 0
            • D
              Dev1603 @dobbel last edited by

              @dobbel please check the image . build parameter is the env i.e a9dee42f-82f2-495c-be15-31d17a43f212-image.png
              it is the api to connect to backend for spa … do i need to pas this for cordova also ??

              dobbel 1 Reply Last reply Reply Quote 0
              • dobbel
                dobbel last edited by

                This post is deleted!
                1 Reply Last reply Reply Quote 0
                • dobbel
                  dobbel @Dev1603 last edited by dobbel

                  @Dev1603 you’re double posting. I already responded on another thread. Anyways it could be that ‘http’ requests are marked as unsafe if running on cordova. Try to make your server ‘https’. You can check if the requests are blocked in de chrome inspector network (with the phone connected).

                  To debug your cordova app on the phone:

                  chrome://inspect/#devices

                  don’t forget to enable dev options on your phone:

                  “Tap Build number seven times. After the first few taps, you should see the steps counting down until you unlock the developer options. Once activated, you will see a message that reads, “You are now a developer!” Go back to Settings, where you’ll now find a Developer options entry at the very bottom of the menu”

                  Then enable USB debugging and accept your computer as a trusted device.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post