how to know the siri is invoked by iphone or carplay

My app need using siri to start. And I need to know the siri command is from iphone or from carplay side, is it possible. if yes, how can I know that?

Thanks!

Replies

I would check the source of the incoming siri command - example: https://developer.apple.com/documentation/sirikit/incarplaydomainhandling?language=objc


Just remember that the audio is coming from either the phone's mic (cable or BT), or the vehicle's in-car mic, so once it hits that channel, siri might not care.


Perhaps if you were to illustrate your use case, someone might be able to identify a specific solution.