You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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.
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
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.
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.
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
Platforms Affected
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
The text was updated successfully, but these errors were encountered: