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

    cordova undefined

    Help
    2
    3
    1404
    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.
    • Q
      quimarche last edited by

      I’ve started a new app (cli: 0.4.1, quasar-framework: 0.13.1), quasar build, cordova plugin add phonegap-nfc --save, cordova run, the app starts but it can’t find a reference to cordova. In main.js:

      Quasar.start(() => {
      console.log(cordova)
      …

      All this using remote debugging via Chrome Dev Tools on an Android phone.

      If I leave out the reference to cordova and the plugins, the app loads and runs just fine.

      Please, can you point out where I’m going wrong?

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

        Cordova is not accessible in the Browser. It would make no sense, since you have no camera and NFC Hardware to access on your desktop.

        i use this toggle to avoid braking the browser app during development :

        if (PROD) {
          window.plugins.insomnia.keepAwake()
        }
        

        So my Corodova plugin is only called when building the App

        1 Reply Last reply Reply Quote 1
        • Q
          quimarche last edited by

          I’m not running in a browser; this is on a physical device.

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