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
A growing set of MAUI / mobile-specific gotchas can't be fixed in core RestSharp because:
Core targets netstandard2.0 / net8.0+ and must remain free of iOS / Android workload dependencies.
Platform fixes often require calling into Foundation / NSURLSession / Java.Net types that only exist under TFM-specific workloads (net9.0-ios, net9.0-android, etc.).
Naming.RestSharp.Maui vs RestSharp.Platforms vs separate RestSharp.iOS + RestSharp.Android packages. I lean toward RestSharp.Maui — single package, MAUI is the dominant consumer of platform-specific HTTP quirks.
TFM matrix. Probably net8.0-ios, net9.0-ios, net10.0-ios, net8.0-android, net9.0-android, net10.0-android, plus netstandard2.0 no-op fallbacks so consumers can reference it from shared projects without conditional compilation.
Maintenance burden. Every iOS / Android SDK bump may need a sanity check. Worth it only if 2-3+ platform fixes accumulate. Today we'd ship with just UseIosCookieFix.
Discovery. Would need a README pointer and a docs section explaining when to reach for it. Risk: people who don't read docs still hit the original bug.
Motivation
A growing set of MAUI / mobile-specific gotchas can't be fixed in core
RestSharpbecause:netstandard2.0/net8.0+and must remain free of iOS / Android workload dependencies.Foundation/NSURLSession/Java.Nettypes that only exist under TFM-specific workloads (net9.0-ios,net9.0-android, etc.).A small TFM-targeted companion package could collect these recipes as one-liner extension methods.
Proposed surface
Usage in a MAUI app:
Open questions
RestSharp.MauivsRestSharp.Platformsvs separateRestSharp.iOS+RestSharp.Androidpackages. I lean towardRestSharp.Maui— single package, MAUI is the dominant consumer of platform-specific HTTP quirks.net8.0-ios,net9.0-ios,net10.0-ios,net8.0-android,net9.0-android,net10.0-android, plusnetstandard2.0no-op fallbacks so consumers can reference it from shared projects without conditional compilation.UseIosCookieFix.Decision needed
UseIosCookieFix) covering Cookies are not added to cookie container when running on iOS #2168 / Headers on iOS not intercepted from httpclient #2385?Tracking: depends on #2387 (docs landing first) and follows from the design discussion in #2168.