module Turbo::Native::Navigation
def hotwire_native_app?
Hotwire Native applications are identified by having the string "Hotwire Native" as part of their user agent.
def hotwire_native_app? request.user_agent.to_s.match?(/(Turbo|Hotwire) Native/) end