PCIOS-732: iOS CarPlay: Apple Maps voice guidance repeatedly pauses playback (even when guidance volume is zero)#4520
Draft
pocketcasts wants to merge 1 commit into
Draft
Conversation
…layback (even when guidance volume is zero)
Collaborator
Generated by 🚫 Danger |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resolves https://linear.app/a8c/issue/PCIOS-732/ios-carplay-apple-maps-voice-guidance-repeatedly-pauses-playback-even
Summary
When CarPlay navigation apps (Apple Maps, Waze) fire audio interruptions for turn-by-turn prompts, Pocket Casts resumes playback from the exact pause point — losing ~1-2 seconds of audio each time. This happens even when the nav app's guidance volume is zero, since iOS fires the interruption when the nav app activates its audio session, regardless of volume.
This PR adds a ~1s rewind ("smart resume") before auto-resuming after an audio interruption, matching the behavior of Apple Podcasts and Overcast.
Changes
FeatureFlag.rewindOnResumeAfterInterruption(defaults totrue) so the behavior can be remotely toggledPlaybackManager.handleAudioInterruptionto seek back 1 second before resuming when an interruption ends with.shouldResume, usingseekTo(time:startPlaybackAfterSeek:)instead of a plainplay()Verification
Confidence
MEDIUM — The code change is straightforward and follows existing patterns, but full verification requires on-device CarPlay testing which cannot be done in CI. The fix is flag-gated so it can be remotely disabled if any issues arise.
Known Issues
This PR was created autonomously by linear-solver.
Triage complexity: medium | Linear issue