Hotwire_native_app?

@cwills
Wed, 17 Sep 2025 19:49:54 +0000

I’m using <% if hotwire_native_app? %> to hide parts of a page if the user is using my iOS or Android app. This works in the iOS app but it doesn’t work in my Android app.

In the Android app the user-agent doesn’t contain “Turbo Native”.

Do I need to set this in my Android app? The documentation makes it seem like it should already be part of the Turbo Native gem.