dotnet / dotnet/maui

[Enhancement] Consistent handling of cookies across platforms

Open
#1,785 1 comment 0 reactions 0 assignees View on GitHub
area-controls-webview partner/webview2 t/enhancement ☀️
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

## Summary
Cookies are persisted across app sessions on Android whereas on iOS they're not. It would be ideal to have control over this behavior regardless of any inconsistencies that may exist between the underlying platform components.

## API Changes

Provide the ability to configure the cookie persistence behavior from Xamarin.Forms.

e.g.

WebView.CookiePersistence = CookiePersistence.None; // new API

Options could indicatively include:
- None
- SingleSession
- MultiSession

## Intended Use Case
Having more granular control over cookie persistence without creating a custom WebView.

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Xamarin.Forms WebView API and how Android and iOS currently persist cookies. Define the supported persistence options and how they should behave across platforms, then verify that callers can configure the behavior without creating a custom WebView.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
api, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.