OneBusAway / onebusaway-iphone

OBA development has moved!
https://github.com/OneBusAway/OBAKit
Apache License 2.0
219 stars 117 forks source link

Add link to regional fare payment app #1336

Closed barbeau closed 6 years ago

barbeau commented 6 years ago

In OBA Android v2.3.9 rolling out now, a new option to "Pay my fare" is now available in the navigation drawer, with each region being able to designate a fare payment app.

When you tap on "Pay my fare", if you don't have the regional fare payment app installed, you're directed to Google Play to install it. If it's already installed, then the tap opens the app directly.

Current supported regions are:

Here's an example UI flow for San Diego:

image

If a region has a fare payment app that doesn't cover all of the transit service shown in OBA Android, they are able to provide warning text that is shown to the user - for example, for Puget Sound:

image

Implementation details on Android

Three new fields added to the Regions API:

@aaronbrethorst Any thoughts on the feasibility of something similar on iOS, and level of effort to accomplish this? We will likely have an opportunity to pitch this for funding soon.

Expected behavior

Give me an easy way to reach a regional fare payment transit app from within OBA iOS

Actual behavior

No links to fare payment apps exist

Steps to reproduce the behavior

N/A

aaronbrethorst commented 6 years ago

I’m working on this now and hope to include it in the next TestFlight build. Unfortunately, because of abuse by Twitter (among others) a few years ago, Apple makes it difficult to launch arbitrary apps unless they support iOS deep links, which none of these payment apps appear to. Still, it should be possible to shoehorn something into place that’ll work at least for Tampa, SD, and PS.

barbeau commented 6 years ago

Awesome, thanks @aaronbrethorst!