-
Notifications
You must be signed in to change notification settings - Fork 25
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
Fetch in android not working #60
Comments
Having issues with fetch() too under Android. Testing under Android Studio, the logcat shows that the execution proceeds inside the addEventListener but Fetch is not executing. Does not matter if I use fetch() or pure XMLHTTPREQUEST. Neither works. |
Hello @mahen23, @shakib-rahimi! Is this happening while in the background, or also when you call your function via |
Same error here... @theproducer it's happening with the demo code for me. |
Hi @theproducer, it's happening in the runner.js after calling it from dispatchEvent, i ran it with try...catch, and after catching the error was empty. these are my package versions: "dependencies": { And ng version output: Angular CLI: 16.2.6 Angular: 16.2.9 Package Version@angular-devkit/architect 0.1602.6 |
@theproducer I'm also having this issue. Unfortunately, I was testing this library a few weeks ago, so I can't give you the details, but something is definitely wrong. If you have trouble reproducing it, I can recreate an example for you, just let me know. |
Thanks, I suspect it may have to do with the way we are bundling the .aar for the Android JS Engine. I'm working on a fix now, stay tuned! |
Hi,
If any I can also try to give you a use case. |
Hey @theproducer sorry to bother you with this, but how is the fix for this going? This is blocking us from actually using the plugin in production. Thank you for all the work so far. |
Is there any updates on this? We tried to use latest version of the plugin, fetch does not work. |
@theproducer did you make any progress on the fix, I did try to use the 1.0.6 (snapshot) but with no success. |
We have the same issue - on iOS, fetching (GET,POST) works great, but on android it does not work at all :( |
I have the same problem in android. The error is empty and there are no fetching results. |
I have a similar issue, const resp = await fetch(
'https://backend.ngrok-free.app/api/location/location',
{
method: 'POST',
headers: {
'Content-Type': 'application/json',
},
body: '{"foo": "bar"}',
},
) it is sending data like this, appending 1 or 2 hex chars before JSON and 0 after JSON.
background-runner version: 1.1.0 how to send post request without being chunked? |
Hi everyone, I’ve resolved the fetch issue for my use case and have opened a separate issue along with PR #105. Please review it once the PR is merged. If your use case is still not resolved, kindly share a code snippet to reproduce the issue, and I’ll do my best to address it. Additionally, if you find my PR helpful, feel free to support me by sponsoring through my GitHub page: https://github.com/sponsors/PratikBodawala?frequency=one-time. Thank you! |
Hello,
I spent about two days on version 1.0.5 to fix the call to the fetch function in the event listener that was getting an error and the error was empty.
Hopefully the not LTS version 1.0.6-devxxxxx6000.0 works. I would like to raise the issue and ask: When will the LTS version for that fix come?
and the android-jw-engine-release.aar should be manually copied to android/libs/...
Greetings and thank you for this useful plugin ;)
The text was updated successfully, but these errors were encountered: