Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] web worker support #445

Closed
CodeWithOz opened this issue Dec 1, 2021 · 2 comments
Closed

[Feature] web worker support #445

CodeWithOz opened this issue Dec 1, 2021 · 2 comments
Labels

Comments

@CodeWithOz
Copy link

Is your feature request related to a problem? Please describe.
I have network requests that are currently performed in web workers. I'd like to know if there's a way to use this plugin for those requests.

Describe the solution you'd like
I'd like a way to use this plugin's API via a web worker.

Describe alternatives you've considered
Right now the alternative is to perform the requests from the main thread using this plugin, then funnel the results into the web worker when the request resolves.

@silkimen
Copy link
Owner

Hi @CodeWithOz, unfortunately this plugin can't be used directly in a web worker. The reason is that the cordova bridge is not available in the web worker (e.g. check this link). But I'd love to implement this feature if the cordova team decided to support web workers. Maybe you can open an issue there?

@silkimen
Copy link
Owner

Closing this, feel free to open a new issue, if this won't solve your problem! 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants