BelledonneCommunications / linphone-android

Linphone.org mirror for linphone-android (https://gitlab.linphone.org/BC/public/linphone-android)
https://linphone.org
GNU General Public License v3.0
1.13k stars 689 forks source link

Feature request: Android Auto call answering? #2216

Closed eturk1 closed 3 months ago

eturk1 commented 3 months ago

Hi team!

How's progress on call answering progress in Android Auto?

I was thrilled as I could have sworn I saw an Answer / Decline dialog box on v5.3. But when I went back to test it more... v6.0 was installed from Play Store and I don't see call answer.

I think it's the only thing missing from Linphone for me. I drive all day and I'm not going to pick up my phone to answer a call.

Viish commented 3 months ago

Hi @eturk1,

No it didn't work with the previous release either... I have opened an issue on Google's big tracker but so far no useful answer from them: https://issuetracker.google.com/issues/332652834 If you could star it it may help...

Cheers,

Viish commented 3 months ago

I also had an issue here but due to their inactivity it was automatically closed: https://github.com/android/platform-samples/issues/158

eturk1 commented 3 months ago

Have you asked Gemini in Android Studio?

It's suggesting CallRedirectionService & CAR_CONNECTION permission added to manifest & other changes

Viish commented 3 months ago

Fixed in commit ID a676c514 :smiley:

I found the answer in the telecom_auto branch of https://github.com/android/platform-samples.git repository (I don't know why it wasn't merged).

eturk1 commented 3 months ago

@Viish Android Auto still does not show an incoming call notification so we can Answer or Decline on headunit

It looks like CallRedirectionService must be implemented?

Viish commented 3 months ago

It looks like CallRedirectionService must be implemented?

No, this is for intercepting calls made from native dialer in another app, that's not what we want to do.

Incoming & outgoing calls notification in Android Auto works fine on the Desktop Head Unit simulator with my phone, but indeed not in a real car. I guess Google has to validate it (when I'll push a new version with the fix on the Play Store) first before it can be used in a real car. I'll let you know.

eturk1 commented 3 months ago

OK I'll set up head unit simulator to test also

Viish commented 3 months ago

Ok so I know why it doesn't work in a real car: I've tried to submit our app with the car call feature but it got rejected because the feature is in closed beta and we haven't been accepted yet (what I was telling you about before).

So - sadly - I got no choice but to comment out all that code until either we are accepted into the beta, or that the beta is over and the feature will be publicly available...

eturk1 commented 2 months ago

Govt in Italy has forced Google to produce a "template" so an app vendor could get access to Android Auto.

This template could be useful to gain access?

https://finance.yahoo.com/news/google-limits-access-android-auto-083715001.html

eturk1 commented 2 weeks ago

Have you tried the apk in a sideload (non-play store) to see if it would work?

If so, could there be a conditional compile so the code won't go into apk for Play Store?

Viish commented 2 weeks ago

Have you tried the apk in a sideload (non-play store) to see if it would work?

No, it won't. Android Auto app makes the request to Google servers to check whether an app can work or not in it, so until the Play Store validates the app, it won't work in a real auto, even in dev mode (that's my conclusion from my tests).