fabmob / standard-covoiturage

Standard covoiturage dans le MaaS - MaaS standard for ridesharing
Apache License 2.0
14 stars 3 forks source link

Technical solutions to support a SHOULD for back navigation during the booking flow are missing #10

Open riclage opened 2 years ago

riclage commented 2 years ago

Concerning the tech spec proposal #4 to implement a "booking" flow for passengers, we consider the "back" UX navigation pattern as optional. As per the RFC 2119, carpool operators MAY implement this pattern so that passengers can go back to the MaaS app.

Currently this is optional due to technical limitations that exist in many cases today. For example:

In all the above cases it is not trivial to implement a solution where the user can use the operating system "back" UX pattern to return from the operator to the MaaS app.

Until those technical difficulties are addressed, we cannot propose that operators SHOULD provide a back navigation.

adelcasse commented 2 years ago

@osarrat proposed an interesting way to pass some arguments during search, before the booking flow occurs to take them into accounts in deeplinks and after during the booking by deeplink process, in PR https://github.com/fabmob/standard-covoiturage/pull/6 ...

We could maybe take inspiration on that by adding something like a callbackUrl which would be the "Return to the MaaS" URL for the "back" functionality ?

This wouldn't be so complex for the operator and we could use a SHOULD instead of MAY ?

adelcasse commented 2 years ago

Following todays meeting discussion, I made a new proposal for a converged (API + deeplink) booking in PR https://github.com/fabmob/standard-covoiturage/pull/18

In this case, passengerOperatorUrl (if the MaaS provides a passenger) could be used as callback URL to solve this and send back to the MaaS ?