You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've noticed some differences in how Hotwire Native Android and iOS handle modal navigation. More specifically, the way they handle Server-Driven Routing.
The following reproducible examples are created using the latest v1.1.1 versions of Android and iOS, as well as the Hotwire Native Demo project.
Steps to reproduce
Add the following to the PathConfiguration of Android and iOS:
Opening a modal from index.ejs (one fragment on the stack):
presentation: NONE
When the form is submitted and the server redirects to /resume_historical_location, Android pops the modal and refreshes the page below it. (iOS neither pops the modal nor refreshes the screen below it; it does nothing.)
presentation: POP
When the form is submitted and the server redirects to /recede_historical_location, Android pops the modal and freezes.
Opening a modal from one.ejs (two fragments on the stack):
presentation: POP
When the form is submitted and the server redirects to /recede_historical_location, Android not only pops the modal but also the previous fragment. It also refreshes the screen below it. (iOS only pops the modal, with no refresh.)
Demo Server logs from Android:
POST /new
GET /recede_historical_location
GET /
Demo Server logs from iOS:
POST /new
GET /recede_historical_location
presentation: NONE
When the form is submitted and the server redirects to /resume_historical_location, Android pops the modal and refreshes the screen below it. (iOS neither pops the modal nor refreshes the screen below it; it does nothing.)
Demo Server logs from Android:
POST /new
GET /resume_historical_location
GET /one
Demo Server logs from iOS:
POST /new
GET /resume_historical_location
Let me know if I can provide any further details or clarify anything to help understand this behavior better.
The text was updated successfully, but these errors were encountered:
Hi there,
I've noticed some differences in how Hotwire Native Android and iOS handle modal navigation. More specifically, the way they handle Server-Driven Routing.
The following reproducible examples are created using the latest v1.1.1 versions of Android and iOS, as well as the Hotwire Native Demo project.
Steps to reproduce
Either use my prepared branch of the Hotwire Native Demo project or add the following:
server.js
views/new.ejs
views/one.ejs
Opening a modal from index.ejs (one fragment on the stack):
presentation: NONE
When the form is submitted and the server redirects to /resume_historical_location, Android pops the modal and refreshes the page below it. (iOS neither pops the modal nor refreshes the screen below it; it does nothing.)
presentation: POP
When the form is submitted and the server redirects to /recede_historical_location, Android pops the modal and freezes.
Opening a modal from one.ejs (two fragments on the stack):
When the form is submitted and the server redirects to /recede_historical_location, Android not only pops the modal but also the previous fragment. It also refreshes the screen below it. (iOS only pops the modal, with no refresh.)
Demo Server logs from Android:
Demo Server logs from iOS:
When the form is submitted and the server redirects to /resume_historical_location, Android pops the modal and refreshes the screen below it. (iOS neither pops the modal nor refreshes the screen below it; it does nothing.)
Demo Server logs from Android:
Demo Server logs from iOS:
Let me know if I can provide any further details or clarify anything to help understand this behavior better.
The text was updated successfully, but these errors were encountered: