diff --git a/android/configuration.html b/android/configuration.html index 5c0f940..4930486 100644 --- a/android/configuration.html +++ b/android/configuration.html @@ -212,8 +212,25 @@
Hotwire.registerBridgeComponents(
BridgeComponentFactory("my-custom", ::MyCustomComponent)
)
Set the JSON converter used for bridge components:
Hotwire.config.jsonConverter = KotlinXJsonConverter()
-Customize the user agent:
-Hotwire.config.userAgent = "My Application; ${Hotwire.config.userAgentSubstring()}"
+Set a custom user agent application prefix for every WebView
instance. The library will automatically append a substring to your prefix which includes:
"Hotwire Native Android; Turbo Native Android;"
- for hotwire_native_app?
on your Rails server"bridge-components: [your bridge components];"
WebView
’s default Chromium user agent stringHotwire.config.applicationUserAgentPrefix = "My Application;"