Intregrate backend to cordova application
how to add nodejs backend environment for building cordova application ??
@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.
@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 &
@dobbel please check the image . build parameter is the env i.e
it is the api to connect to backend for spa … do i need to pas this for cordova also ??
This post is deleted!
dobbel 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:
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.