0

I have plan to use web worker in my ionic app. The intention is to use web worker for the function of downloading and storing video files to android device.

I use 2 native libraries, @ionic-native/file/ngx and @ionic-native/http/ngx to download and store files and comlink-loader to load web workers. However, it seems that the above 2 @ionic-native libraries cannot be run with web workers.

I tried using axios to replace @ionic-native/http/ngx and it seems to be successful, but for storing files to android device there is still no way to handle it (I tried with @capacitor/ filesystem but failed).

Can anyone give me some advice?

4

0 回答 0