Native application not sending the Hotwire user agent due to Service Worker #152
jean-francois-labbe
started this conversation in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm writing this down here, in hope it helps someone.
I've spent some time to understand why would a bridge component not work on an Android Native application.
If you use a Service Worker and it intercepts your queries, something like:
There are different strategies, but if your Service Worker performs a
fetch(event.request), then it is using the default browser user agent and not the HotwireNative one (the one with bridge components).This is due to a bug in chromium https://issues.chromium.org/issues/40236995
Beta Was this translation helpful? Give feedback.
All reactions