Skip to content

Adding a User Agent Definition to WebView #17711

Description

@LiberRuth

What would you like to be added

XAML

<WebView2 UserAgent="Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36"/>

C#

webViews.UserAgent = "Mozilla/5.0 (Linux; Android 13; Pixel 7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Mobile Safari/537.36";

Why is this needed

No response

For which platform

No response

Anything else we need to know?

No response

Activity

  1. added
    difficulty/tbd
    kind/enhancement
    triage/untriaged
    on Jul 26, 2024
  2. Youssef1313 commented on Jul 26, 2024

    @Youssef1313
    Member

    You should be able to do it when sending a request with NavigateWithHttpRequestMessage. You add UserAgent as a request header

  3. added
    area/webview
    on Jul 26, 2024
  4. LiberRuth commented on Aug 13, 2024

    @LiberRuth
    Author

    화면 캡처 2024-08-13 214831

    Right now the API for this is not implemented

  5. github-actions commented on Aug 26, 2025

    @github-actions
    Contributor

    Hey there — just a heads-up that this issue has been quiet for over a year. If there’s no update or comment in the next 10 days, it’ll be closed automatically. Feel free to remove the stale label or drop a note to keep it open.

  6. added
    stale
    on Aug 26, 2025
  7. removed
    stale
    on Aug 26, 2025
  8. DevTKSS commented on Sep 8, 2025

    @DevTKSS
    Contributor

    is here any update from uno side available? I am looking for similar not implemented things but they are not even listed as not supported in the ImplementedViews... asking on the discord server did not bring any response 😒

    Navigation Events

  9. added
    difficulty/medium 🤔
    and removed
    triage/untriaged
    difficulty/tbd
    on Nov 24, 2025
  10. github-actions commented on May 6, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  11. added
    stale
    on May 6, 2026
  12. removed
    stale
    on May 6, 2026
  13. github-actions commented on Oct 17, 2026

    @github-actions
    Contributor

    This issue has had no activity for 120 days. It will be closed in 10 days if there is no further activity. Remove the Stale label or leave a comment to keep it open.

  14. added
    stale
    on Oct 17, 2026
  15. github-actions commented on Oct 27, 2026

    @github-actions
    Contributor

    This issue was closed because it had no activity for 10 days after being marked as stale. If you believe this is still relevant, feel free to reopen it or open a new issue with updated context.

  16. Jen-Uno commented on Oct 28, 2026

    @Jen-Uno
    Contributor

    This issue was closed as not planned, so there is nothing for QA to verify. Moving it from Ready for QA Review to Done on the Uno Team Backlog.

  17. removed
    stale
    on Nov 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/webviewdifficulty/medium 🤔kind/enhancement

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions