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

[Bug]: CapacitorHttp patching not working on iOS using --livereload #7334

Closed
1 of 3 tasks
mariusbolik opened this issue Mar 12, 2024 · 2 comments · Fixed by #7339
Closed
1 of 3 tasks

[Bug]: CapacitorHttp patching not working on iOS using --livereload #7334

mariusbolik opened this issue Mar 12, 2024 · 2 comments · Fixed by #7339
Labels
platform: ios type: bug A confirmed bug report

Comments

@mariusbolik
Copy link

mariusbolik commented Mar 12, 2024

Capacitor Version

💊 Capacitor Doctor 💊

Latest Dependencies:

@capacitor/cli: 5.7.2
@capacitor/core: 5.7.2
@capacitor/android: 5.7.2
@capacitor/ios: 5.7.2

Installed Dependencies:

@capacitor/android: not installed
@capacitor/cli: 5.7.2
@capacitor/core: 5.7.2
@capacitor/ios: 5.7.2

Notice: Bug also occours on Capacitor 6!

Other API Details

iOS Pod Version: 1.14.3

Platforms Affected

  • iOS
  • Android
  • Web

Current Behavior

I noticed, that the native http patching does not work on iOS devices when running the app on a real device and using the --livereload flag. I receive cors errors when using livereload. But when I make a normal production built, it works without problems and I don't receive cors errors. This bug seems not to happen on android.

The main problem is, that my app (like the most apps) makes some http requests at initialization. Due to the CORS errors that occur immediately, it is not possible for me to continue developing my app with livereload. The splash screen won't disappear. This significantly impairs the DX. It seems like this bug exists for several months now and is also present on Capacitor 6.

I am using the following command to run the project: ionic capacitor run ios --livereload --external

Expected Behavior

HTTP patching in combination with livereload should work on iOS like it does on Android.

Project Reproduction

https://github.com/mariusbolik/capacitor-http-error/tree/main

Additional Information

No response

@mariusbolik mariusbolik changed the title [Bug]: CapacitorHttp patching not working with livereload on iOS [Bug]: CapacitorHttp patching not working on iOS using --livereload Mar 12, 2024
@jcesarmobile jcesarmobile added the type: bug A confirmed bug report label Mar 12, 2024
Copy link

ionitron-bot bot commented Mar 12, 2024

This issue has been labeled as type: bug. This label is added to issues that that have been reproduced and are being tracked in our internal issue tracker.

Copy link

ionitron-bot bot commented Apr 13, 2024

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.

@ionitron-bot ionitron-bot bot locked and limited conversation to collaborators Apr 13, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
platform: ios type: bug A confirmed bug report
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants