AndroidAPS
AndroidAPS copied to clipboard
Android auto: needs and wishes
Hi,
I plan to update code for android auto but before I go deep into it, I would like to gather and the needs and wishes.
Up to now, I notice:
- needs to update API because the old one is depreciated
Anything else?
the priciple of new API is different. not only notifications. You'll see what's possible
Hi @MilosKozak, I already had a quick look but did not see a big difference, could you please point to me what you saw? Thanks.
I'm not sure if it's possible with android auto, but I'd like notifications to be muted by default for AAPS, (but still visible in the notifications area). It would save on the regular task of muting it every time I start Auto
If I may dream, then please an interface with which I can enter carbohydrates and TempTargets and start a bolus ... But I know that this is hardly possible. Regardless of this: Thanks for your work on this!
The rare situation I could AndroidAuto, (not my car), it was with Waze... I noticed:
- Ok Google worked much better with AndroidAuto than on my phone (I can't explain why, but I could select destination easily)
- User Interface is very simple (few and big buttons and a big graph)
I don't know how API works but if we could have a maximum of 2 or 3 buttons (INSULIN, CARBS and CALCULATOR) with only one field behind and an additional interface with Ok Google, it could be nice... Ok Google / enter 50 grams of Carbs / Ok Ok Google / inject 3.5 units of insulin / Ok Ok Google / Calculate Insulin for 50 grams / Ok
Something like that (to check of course with safety)...
I don't think it works that way... This is one way communication only, at least that is what I gathered when I was investigating this. Auto supports two types of application: music apps and notification apps. Ours is defined as notification app, and we just receive messages from AAPS. We can't really do anything with that... This ticket is to strip out old support and add new one (which works worse that old one, at least from my point of view)... They added new complexity with new implementation, and when I was looking at that (about a year ago I think), there were no live samples (on how to implement) available anywhere...
Agree with Andy. Unless you are a 'specific partner' it is unlikely that you would be able to access/add additional functionality beyond the one way notifications. https://developers.google.com/cars/design/android-auto/apps/custom-apps
May be nice to allow users to toggle on/off info types that are displayed/announced in the notification. E.g. unlikely I would need to see the current profile name when driving.
We could probably configure what we send in AAPS itself and filter what we send there... All the magic is happening in PersistentNotificationPlugin.updateNotification(), at the moment you can send 2 notifications at same time (normal one and auto one), but for new Auto API you have to create separate notification (and separate channel, etc)...
Actually, I get the AAPS notifications twice (probably because of the API being old) when AndroidAuto connected to my car. It would be nice to have it only once ;)
Every 5 minutes, the notification beeps. Very annoying when you're on a 10 hour drive... It would be nice to beep only if the situation needs attention (hypo arriving, strong neg or positive delta BG etc)
thanks all for your feedbacks.
@robertrub @markvader on my side, I muted notifications and this is persistent, strange that you either can't mute or need to mute each time. Are you always using last android auto app version?
@robertrub yes notifications come twice and it was always like this, I assume PersistentNotificationPlugin.updateNotification() is trigerred 2 times.
Otherwise, in fact, we use the messaging app type, so normally we could imagine to send (to speak) an answer each time we get a notification and we could maybe imagine to build answer in a way we could parse it and do something with it. But that might be out of my competences and I will in any case first concentrate on updating API and then we can always add new features.
Keep you updated.
Hello, are you still working on this? I use Android Auto everyday and have 2 requests. I use Freestyle Libre 3 and get a new BG value every minute, which is a bit annoying during navigation, because notifications in Android Auto take up so much screen space. It would be great to have the option to limit notifications to every 2, 5, 10 or every custom amount of minutes.
Secondly, would it be possible to have AAPS always visible on the side, like a music player as seen in the picture here https://support.google.com/androidauto/answer/6348063?hl=en&sjid=12488486028051916649-EU Maybe even with a few actions available 🗡️ Thanks for all your effort!