Giter Site home page Giter Site logo

Comments (3)

zachwaugh avatar zachwaugh commented on August 10, 2024 1

Turbo::Native::Navigation are specific urls with some semantic meaning that the apps can handle in a way that makes the most sense for that particular app/platform. For example, there may be cases on the web where it makes sense to redirect to a particular url. In the same case in the mobile apps, we might want slightly different behavior. A common case is things that mobile apps present a form in a modal (like composing a new email). When that email is sent, we want to recede to the previous screen by dismissing the modal and not follow the redirected url that the web does.

Which part handles the native specific response?
What happens to a client if one gets that kind of response?

There is nothing built-in to the libraries to handle it. This just sends different redirect urls depending on the user agent and the response comes in as a normal visit proposal like any other url. It's up to the client app to decide how to handle those urls.

Should a port to another language of turbo-rails include Turbo::Native::Navigation?

I think it would make sense to include for parity, but probably not necessary since we haven't documented it well and it's not likely anyone is relying on it. It's also completely optional. I'll add a to-do for myself to better document how this is intended to work.

from turbo-rails.

tonysm avatar tonysm commented on August 10, 2024 1

Ayush shared this article on the topic a couple days ago: https://dev.to/ayushn21/directing-turbo-native-apps-from-the-server-187c

from turbo-rails.

pfeiffer avatar pfeiffer commented on August 10, 2024

Hey @zachwaugh, sorry for resurrecting this old issue.

While I understand that the implementation of how to handle these special semantic URLs differ from app to app, could you share some light into the behavior that you are currently using for the resume, recede and refresh action?

We are working on an open-source React Native wrapper around turbo-ios and turbo-android. The React Native wrapper provides a stacked navigation and it would be great to support these semantic URLs out-of-the-box.

If you provide some details in this issue, I'm happy to wrap that up in a PR that fixes the FIXME: .. comment in the file mentioned :-)

from turbo-rails.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.