I’m using quasar framework with capacitor to build an app, I’n the first try of downloading a file e.g. audio, video, image, and files. i try using filesystem.writeFile but this cause the Ui to lag and crash when the file is large.
In my second attemp i try the filesystem.downloadFile, and the UI is very responsive i think i solve my problem but upon using the app i realize that the downloadFile causes the other function to stop executing until the download process has finish then the other function follow up to be executed which is not ideal and cause my app to crash since i use a function when navigating in different pages.
so this i found the background runner which i thought can help me in my problem, thinking if the filesystem.downloadFile execute in the background-runner i thought my app responsiveness would be boast.
If the background-runner can help me in my issue please say so and help me in my problem i encountered please.
after following the documentaion, i think i follow it well with help of Ai. when building the app there is no error but when running the app in a emulator there is error and pointing in the reference file
io/ionic/backgroundrunner/plugin/BackgroundRunner.kt
this is the line that the error points
import io.ionic.android_js_engine.Context
import io.ionic.android_js_engine.NativeCapacitorAPI
import io.ionic.android_js_engine.NativeJSFunction
import io.ionic.android_js_engine.Runner
and other lines that i think is connected to this 4 import