Skip to content
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

Apple CarPlay / Android Auto support? #26801

Open
piotrrojek opened this issue Jan 19, 2019 · 56 comments
Open

Apple CarPlay / Android Auto support? #26801

piotrrojek opened this issue Jan 19, 2019 · 56 comments
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project team-engine Owned by Engine team triaged-engine Triaged by Engine team

Comments

@piotrrojek
Copy link

piotrrojek commented Jan 19, 2019

Status update: #26801 (comment)


As I understand, at least with Apple CarPlay, the apps are run strictly on the phone, so it isn't a case of Apple Watch nor tvOS which require bitcode.
I'm not sure about Android Auto as I don't own any Android device.

Is there any way to run Flutter app in car? Is it on a roadmap?

@zoechi zoechi added c: new feature Nothing broken; request for a new capability engine flutter/engine repository. See also e: labels. labels Jan 20, 2019
@zoechi zoechi modified the milestones: Goals, Stretch Goals Jan 20, 2019
@gimox
Copy link

gimox commented Feb 7, 2019

for watchOs and AppleTv unfortunately it requires the compilation with bitcode which is missing!!! I am also awaiting the arrival of this future

@zoechi
Copy link
Contributor

zoechi commented Feb 21, 2019

@zacksleo
Using "add reaction" on the initial comment would increase priority while +1 comments are rather pointless and cause lots of people to get notified for no reason.
To get notified yourself use the [Subscribe] button to the top right instead.

@ThinkDigitalSoftware
Copy link
Contributor

From what I've seen, you need to add some code to the android manifest to get your app registered as Android auto compatible with music or messages. What you can do is try to make a sample app that simply sends messages and add the corresponding Info to your manifest and see if it registers. If so, a plugin can be made and bam, instant support. I'm still researching how to make the UIs

@pbaker5
Copy link

pbaker5 commented May 21, 2019

@ThinkDigitalRepair Did you get anywhere with this?

@ThinkDigitalSoftware
Copy link
Contributor

No, I switched to other things :/

@Gorniv
Copy link

Gorniv commented Aug 1, 2019

any update? how to add support for Apple CarPlay?

@vitor-gyant
Copy link

From my experience with CarPlay, it requires the implementation of specific CarPlay framework classes. The app needs to have custom entitlements and it also require the app to be approved by Apple but this is not complicated to manage and has no relation with flutter itself. Note that only certain apps are eligible for CP.

IMO, the complexity comes from the fact that CarPlay interfaces have very strict HMI guidelines and apple has enforced this in the API design. CarPlay uses a different Window to present the interface so, although it is possible this requires a deep discussion.

@khal-it
Copy link

khal-it commented Oct 22, 2019

any updates ?? Does anyone maybe have a sample app that works for Android Auto/ Apple Carplay

@vitor-gyant
Copy link

@khalithartmann Most of the CarPlay support requires custom classes from CarPlayKit. Furthermore, the touch areas / ui design has very specific guidelines enforced by each class. IT would be easier to develop this natively.

@josexs
Copy link

josexs commented Dec 14, 2019

¿alguna novedad?

@ajonno
Copy link

ajonno commented Dec 15, 2019

am leading a project in January for large organisation that needs CarPlay and Android Auto support (alongside the new mobile app for ios/Droid). My thinking is this rules Flutter out however I came across this post and thought...hmm maybe? Or is this too much too soon for Flutter?

@Hixie Hixie modified the milestones: Stretch Goals, New Stretch Goals Jan 7, 2020
@gaodeng
Copy link

gaodeng commented May 20, 2020

any news?

@kf6gpe kf6gpe added the P3 Issues that are less important to the Flutter project label May 29, 2020
@eturk1
Copy link

eturk1 commented Jul 9, 2020

So cool we can do Windows, MacOS, and even Linux now:
https://www.androidpolice.com/2020/07/08/google-is-teaming-up-with-ubuntu-to-bring-flutter-apps-to-linux/

if only we could do Android Auto? Is that planned or should we give up?

@afkcodes
Copy link

This feature would be awesome

@Hixie Hixie removed this from the - milestone Aug 17, 2020
@darshankawar darshankawar added customer: crowd Affects or could affect many people, though not necessarily a specific customer. passed first triage labels Oct 20, 2020
@jeaanlucas
Copy link

Hi, news?

@rmill777
Copy link

bump

@Dansp
Copy link

Dansp commented Nov 3, 2020

Any news?

@marziman
Copy link

marziman commented Nov 3, 2020

Is there any activity in this? We would be also interested.

@extmathias
Copy link

extmathias commented Nov 10, 2020

Is there any possibility or news to add Android Auto | Apple CarPlay support to a Flutter App?

@oguzhnatly
Copy link

Hi @JaffaKetchup I really appreciate your support and message.

If you need to know the proper answer, I'm interested in Android Auto with Flutter. It is now on my To-Do list to research the documentations. However, in Android, I don't truly think I know anything more than Apple CarPlay and Swift. I'll do my best. The best tip that I can give is to follow the instructions in the Official Android Auto Document and understand the Flutter Engine how it works.


💙 Please continue to support the flutter_carplay by giving like and star so that it can deserve the Flutter Favorite Award and be used more in our cars.

Thanks!

@JaffaKetchup
Copy link

Flutter Devs, any news? Good or bad is ok.

@Hixie
Copy link
Contributor

Hixie commented Jan 15, 2022

A non-status status update in the interests of transparency (though in this case there's nothing to see through the transparency, heh):

As far as I know, nobody working on Flutter is doing anything with respect to Apple CarPlay or Android Auto.

For Apple CarPlay, there is a package called flutter_carplay by Oğuzhan Atalay that gives a Flutter API for controlling the CarPlay API, as discussed above in this issue. It's not clear that anything beyond that really makes sense for CarPlay, because Apple's API is template based and so Flutter (with its rendering engine, widgets framework, platform neutrality, etc) doesn't really provide any direct value. The plugin looks pretty good from what I can tell, though I haven't tried it myself.

For Android Auto, our understanding is that the API situation is similar: there are some templates that you can fill in using Android APIs. To our knowledge nobody has yet created a plugin to expose those APIs to Dart code, but we are not aware of any reason why that would not be possible. (For extra bonus points, one could imagine a package that tries to intelligently fill both CarPlay and Android Auto templates from the same source data, but that may be hard if the templates are too different from each other, I don't know.)

Currently, it does not seem that we (the core Flutter team) can provide substantially more value here than anyone else could in writing plugins like Oğuzhan's, so we do not intend to work on this. We would encourage people to work with Oğuzhan and/or create new plugins for these features. Should the situation change (e.g. if CarPlay or Android Auto supported a way for us to directly send pixels to the car dashboard, allowing the power of Flutter's widgets to be useful here), we would reconsider this feature.

@Hixie Hixie added P6 and removed P3 Issues that are less important to the Flutter project labels Jan 15, 2022
@eturk1
Copy link

eturk1 commented Jan 15, 2022

thank you for some light on this question @Hixie !

@oguzhnatly
Copy link

oguzhnatly commented Jan 15, 2022

Thank you for the information and mention, @Hixie!

Hello everyone, I'd also like to mention that we've created the Flutter Auto Technologies GitHub Organization: Automotive Technologies made with Google's Flutter. Join our Discord Community: https://discord.gg/Xz6WVezFfh

About Flutter Android Auto OS Support

Flutter Android Auto OS is currently in private development. We are integrating car sensors such as speed sensors, gear sensors, fuel sensors, and so on using android automotive. We have roadmaps for Android Auto and Apple CarPlay. If you want to contribute and support, please join our Discord server so that we can give you access.

Flutter Widgets are now on Apple CarPlay Screen!

CarPlayFlutterWidgets
This is a proof of concept of a Flutter-based app running on the Apple CarPlay app.
GitHub: https://github.com/Flutter-Auto-Technologies/CarPlay-Flutter-Widgets

💙 Please continue to support the Flutter Apple CarPlay by giving like and star so that it can deserve the Flutter Favorite Award and be used more in our cars. Thanks!

In pub.dev: https://pub.dev/packages/flutter_carplay
GitHub: https://github.com/oguzhnatly/flutter_carplay

@Hixie
Copy link
Contributor

Hixie commented Jan 16, 2022

Wow that's pretty impressive (painting the widgets using the map thing), any idea what Apple's reaction is if you try to submit an app that does that?

@fotiDim
Copy link

fotiDim commented Jan 16, 2022

Wow that's pretty impressive (painting the widgets using the map thing), any idea what Apple's reaction is if you try to submit an app that does that?

It will most definitely be rejected unless it is indeed a "maps" app. I hope Apple will be more permissive about custom CarPlay apps in the future. Same goes for Android Auto...

Glad you liked it. Next step is to take what we have in the POC project and add it as Map template in flutter_carplay. I will be looking into that soon.

@giuseppebrb
Copy link

Any update on the road map for these envs?

@JaffaKetchup
Copy link

@giuseppebrb You'll want to use https://github.com/oguzhnatly/flutter_carplay. I don't think Flutter will ever officially implement this, at least not for a long time. They have a Discord channel where they are discussing Android support, but that's not available yet.

@Mohamed-Ayaad
Copy link

Does anyone maybe have a sample app that works for Apple Carplay in stor

@amit-flutter
Copy link

Any update for Android Auto @oguzhnatly ?
I would like to make a library app that plays video and audio apps in the car. is it possible?
I am new in flutter and this is my first project in audio/video as well as for car play.

help from anyone would be appreciated from the depth of my heart ❤️

@zaid13
Copy link

zaid13 commented Mar 23, 2023

@anonghostteamz that's awesome can you please share the code for android and flutter please?

@flutter-triage-bot flutter-triage-bot bot added P3 Issues that are less important to the Flutter project and removed P6 labels Jun 28, 2023
@flutter-triage-bot flutter-triage-bot bot added team-engine Owned by Engine team triaged-engine Triaged by Engine team labels Jul 7, 2023
@danielehrhardt
Copy link

I have added flutter as module in a android project and make all the changes required for android auto and now the app starts

Can you share some sample Project?

@Projectdow
Copy link

Any update on CarPlay and Android Auto

@giuseppebrb
Copy link

giuseppebrb commented Oct 23, 2023

@anonghostteamz just said that he wants 300$. How poor is this!
This is not a freelance website and this behaviour is totally wrong. Hope you get banned or something.

Guys sorry for the OT but be aware of that.

Screenshot 2023-10-23 at 09 02 24

@jwinarske
Copy link

jwinarske commented Oct 23, 2023

For Android Auto and Car Play, as-is they run as their own process. There are a couple of ways of dealing with this:

  1. Overlay flutter using a Wayland compositor region. This enables passing through control to a layer below. This is supported in ivi-homescreen for use with Android Auto and Car Play.
  2. There is an oss (GPLv3) Android Auto implementation. I used it over a year ago, and it may still work with current Android versions:
    https://github.com/f1xpl/aasdk
    https://github.com/f1xpl/openauto
    For oss version it would be best to run it as a compositor sub-surface (same process as flutter). I will have an oss project for this by CES that runs on ivi-homescreen.

If you want official support from Apple or Google you need a contract in place.

I should add I work for Toyota and am a product line architect on the head unit side, so I know a little bit about this. Building a Flutter app that is Android Auto compliant is not my focus.

@ahmedtanjim
Copy link

Any one have idea about how I can control my flutter app music with android auto or CarPlay?

@andres-flores-espol
Copy link

After 4 years, is there anything new?

@jrahma
Copy link

jrahma commented May 27, 2024

This is a great feature and hope it will be available soon

@Ella-Kim913
Copy link

Is there any implementation guideline or example project that uses native code to add CarPlay and Android Auto support in a Flutter project?

@abdalazeeza
Copy link

i dont know why this is not implemented yet . i can help in native ios but in android i don't have experience any news or any person can help

@salarazad
Copy link

The 'flutter_carplay: ^1.0.3' library for CarPlay is 2 years old now and when adding it it is conflicting with the other libraries I have and giving (Resolving dependencies) error; any idea how to update it manually? or is there a better option now?

@harpreetslabs
Copy link

The 'flutter_carplay: ^1.0.3' library for CarPlay is 2 years old now and when adding it it is conflicting with the other libraries I have and giving (Resolving dependencies) error; any idea how to update it manually? or is there a better option now?

Check forks of this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c: new feature Nothing broken; request for a new capability customer: crowd Affects or could affect many people, though not necessarily a specific customer. engine flutter/engine repository. See also e: labels. P3 Issues that are less important to the Flutter project team-engine Owned by Engine team triaged-engine Triaged by Engine team
Projects
None yet
Development

No branches or pull requests