-
Notifications
You must be signed in to change notification settings - Fork 18
Pull user favorite stops/routes from the cloud #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Yeah this is definitely possible. I am wary of doing this because it has the potential to add friction to the user experience, and it's certainly more for us to maintain (new web application). I'm curious whether the demand for multiple stops will be high enough to justify this. Does OBA have any existing metrics on this? |
I agree, if we implement I'd want to do with as little additional infrastructure as needed. To my knowledge we don't have any info on how many stops users typically star on mobile apps, although I know that the Starred stops screen is one of the most frequently used screens. A better analogous case for Alexa may be web page bookmarks in each region (because they are more likely to be in a stationary position) but again, we don't have that data. |
Did you all have any thoughts on implementing across the various platforms? I'd hope you if you set your favorite in the app (OneBusAway/onebusaway-android#32, does not appear to be iOS issue yet) it would also be reflected on your Echo but perhaps the Echo would ignore stops not in walking distance. |
I believe Firebase real-time database would be an option for cloud save across iOS and Android: One question would be if there is a Java-based SDK for Firebase that our Echo skill could use to access the data. Second, given that it's a Google service, it may require Google Account - I haven't dug into the docs enough to know yet. I know this was a deal breaker at some of the dual platform systems we looked at earlier. Cc @aaronbrethorst so he's aware of the option. |
Firebase would be fantastic, but I expect that the monthly fee would be prohibitive. |
From https://firebase.google.com/pricing/ for "Realtime Database":
For FLAME Unlimited connections:
Without running any numbers, I'm guessing that for something simple like storing the combination of userId and favorite stopIds we'd be able to squeeze into the FLAME package for $25/month. Free tier wouldn't work due to limited number of simultaneous connections at 100. |
Apologies for my lack of knowledge, but would ever concurrent user of the iOS, Android, web, and Alexa apps that are talking to the Firebase backend count as a Firebase simultaneous connection? i.e. if we have 10,000 people around the world that are simultaneously looking at OBA on their device, then the 10,001st user will see an error, regardless of what platform they're on? |
@aaronbrethorst You can ignore the 10,000 "simultaneous connection" cap for the FLAME $25/month plan - it's effectively unlimited. It sounds like the 10k cap is just an initial onboarding limit to prevent spamming/automating account creation:
So upon initial OBA Firebase account setup, we'd call Firebase support, ask them to remove the 10k cap, and then going forward we'd have unlimited connections. |
OK, cool. In that case, I'm definitely 👍 on Firebase. |
We currently have users set their current stop via the voice interface. In the future we will likely support having more than one favorite stored. Setting these via the voice interface is ok, but can be awkward. We also only currently support numeric
stop_codes
, as we use the numeric intent to recognize the speech. There could potentially be alphanumericstop_codes
for stops.One option for improvement is to store the favorites in the cloud, and via OAuth pull them from another system for OBA Alexa.
From https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/authorizing-your-alexa-enabled-product-from-an-android-or-ios-mobile-app:
We're currently working with Microsoft on some social networking features for the OBA Android and iOS apps, so I'm going to see if we could leverage that platform to help bootstrap the favorites list.
The text was updated successfully, but these errors were encountered: