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
{{ message }}
This repository has been archived by the owner on Sep 26, 2022. It is now read-only.
Is your feature request related to a problem? Please describe.
It seems that the timeout (both connectTimeout and readTimeout) is supported on Android however similar feature is not available for iOS platform.
Describe the solution you'd like
Support timeout for http requests for both, iOS and Android.
Closing since 1.0.0-alpha.0 is on npm under @capacitor-community/http@next.
Since iOS and Android behave differently (iOS only having a single timeout), connectTimeout is prioritized over readTimeout. If neither are set, the default timeout of 60 seconds is set instead on iOS
The plugin works, however, when running npx cap sync, I'm getting the error: CocoaPods could not find compatible versions for pod "CapacitorCommunityHttp" it works fine when using the regular @capacitor-community/http version (which doesn't have timeout support on iOS).
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Is your feature request related to a problem? Please describe.
It seems that the timeout (both connectTimeout and readTimeout) is supported on Android however similar feature is not available for iOS platform.
Describe the solution you'd like
Support timeout for http requests for both, iOS and Android.
Describe alternatives you've considered
The cordova-plugin-advanced-http cordova plugin supports this feature https://github.com/silkimen/cordova-plugin-advanced-http#setrequesttimeout (even though there are some caveats - see silkimen/cordova-plugin-advanced-http#316)
Additional context
N/A
The text was updated successfully, but these errors were encountered: