App toggle not recognised

CarPlay does not recognise app toggle and its voice engine keeps speaking even when the user toggles to a different app.Would appreciate any help from your end which could enable us to fix this.
Answered by Systems Engineer in 615189022
CarPlay navigation apps must use the following audio session configuration when playing voice prompts for upcoming maneuvers.
  • Set the audio session category to AVAudioSessionCategoryPlayback.

  • Set the audio session mode to AVAudioSessionModeVoicePrompt.

  • Set the audio session category options to AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers and AVAudioSessionCategoryOptionDuckOthers.

AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers allows voice prompts to pause certain apps with spoken audio (such as podcasts or audio books) and mix with other apps such as music.

AVAudioSessionCategoryOptionDuckOthers allows voice prompts to duck (lower the volume) for other apps such as music while your audio is played.

Try setting up the audio session for your navigation app's voice engine using the above configuration.
CarPlay navigation apps must use the following audio session configuration when playing voice prompts for upcoming maneuvers.
  • Set the audio session category to AVAudioSessionCategoryPlayback.

  • Set the audio session mode to AVAudioSessionModeVoicePrompt.

  • Set the audio session category options to AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers and AVAudioSessionCategoryOptionDuckOthers.

AVAudioSessionCategoryOptionInterruptSpokenAudioAndMixWithOthers allows voice prompts to pause certain apps with spoken audio (such as podcasts or audio books) and mix with other apps such as music.

AVAudioSessionCategoryOptionDuckOthers allows voice prompts to duck (lower the volume) for other apps such as music while your audio is played.

Try setting up the audio session for your navigation app's voice engine using the above configuration.
Thanks for the reply , but what we are looking is to control/mute our app voice prompts, whenever our app goes in background on the carplay. Please suggest.
App toggle not recognised
 
 
Q