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

    Sqlite cordova plugin

    Help
    3
    3
    991
    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.
    • T
      thamibn last edited by

      can someone help me out here i am trying to create a database using sqlite however is it returns the error (could not open database) i just followed exactly what the documentation says and the plugin is installed successfully

      this is a mobile app with the android plartfom.
      please refer to the image for the code i have so far.0_1545391694225_sqlite.PNG

      1 Reply Last reply Reply Quote 0
      • F
        Florentin last edited by

        Hi thamibn, you don’t need these document.addEventListener().

        Ues the vuex store instead.
        Here is a guide https://www.nativescript.org/blog/data-management-with-sqlite-and-vuex-in-a-nativescript-vue-app.
        It’s perfectly working for me.

        1 Reply Last reply Reply Quote 0
        • D
          danb4r last edited by

          I don’t think we need a nativescript vue plugin to do this with Quasar.

          Just go to your “src-capactor” folder and from there run “yarn add cordova-sqlite-storage”. Attention, you must add the cordova plugin to your capacitor folder, not to your root quasar app folder.

          Then, rebuild your project with “quasar dev -m capacitor -T android” and you can run your quasar code exactly as printed above succesfuly bridging it to Android Sqlite database.

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