Skip to content

Conversation

@jayohms
Copy link
Contributor

@jayohms jayohms commented Dec 12, 2024

This resolves issues like these:

Applications can now set a custom applicationUserAgentPrefix for their application via:

Hotwire.config.applicationUserAgentPrefix = "My Application Prefix"

Whenever a WebView instance is created, the library will now automatically include:

  • Your (optional) custom applicationUserAgentPrefix
  • "Hotwire Native Android; Turbo Native Android;"
  • "bridge-components: [your bridge components];"
  • The WebView's default Chromium user agent string

Since this a breaking API change, we'll include this is in an upcoming v1.1 release.

…move error-prone situations where an application wasn't including the Hotwire substring in their custom user agnet.
@jayohms jayohms merged commit 7155a66 into main Dec 16, 2024
1 check passed
@jayohms jayohms deleted the user-agent-prefix branch December 16, 2024 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants