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

    Use a Cordova plugin inside the Quasar app (file caching)

    Help
    cordova cordova-plugin file caching quasar
    2
    2
    1181
    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
      D3myon last edited by D3myon

      Hi Quasar-Community,

      I know, this is primarily a Cordova related problem, but I just don’t know, what to do on the Quasar side.

      Currently I try to integrate markmarijnissen/cordova-file-cache plugin into my app. Is anyone here, who used this already and has a primitive working example for me, just to see how to use it inside my app?

      Or is there a better way to cache files on my device?

      Is this generally possible?

      Would be great if anyone could share his experience with me.

      Thanks for your time.

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

        You use this as you would in any other Vue app. Quasar changes none of that. Since you probably want a single cache instance in your app, you probably should put it in a dedicated file.

        // cache.js
        const cache = new CordovaFileCache(OptionsObject)
        export default cache
        
        // usage in components
        import cache from './path/to/cache'
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post