iOS app resumes playback when headphones are disconnected #927

Open
opened 2026-04-24 23:42:37 +02:00 by adam · 0 comments
Owner

Originally created by @charles-toller on GitHub (Mar 23, 2024).

Steps to reproduce

  1. Start playback of an audiobook book in the iOS
  2. Pause playback
  3. Disconnect Bluetooth headphones (specific model in my case being Google Pixel Buds Pro)

Expected behaviour

  • Audio should stay paused

Actual behaviour

  • Audio playback resumes through speakers

Environment data

Audiobookshelf Version:

  • Android App?
  • iOS App?

iOS Issue

(Using the macOS/iOS Apple Silicon integration)
iOS Version: macOS 14.2.1 (23C71)

iPhone model: MacBook with M1 Pro chip

I suspect the issue is here: https://github.com/advplyr/audiobookshelf-app/blob/3c6d4b5f1917c235ee03f545e4a72de75ee60153/ios/App/Shared/player/AudioPlayer.swift#L612, my headphones send a "pause" command when they're placed back in the case, which Audiobookshelf is treating as Pause/Play. Switching this to support the pause/play/stop/togglePlayPause commands may resolve it, but I don't have an iOS dev setup right now to test that fix.

Originally created by @charles-toller on GitHub (Mar 23, 2024). ### Steps to reproduce 1. Start playback of an audiobook book in the iOS 2. Pause playback 3. Disconnect Bluetooth headphones (specific model in my case being Google Pixel Buds Pro) ### Expected behaviour - Audio should stay paused ### Actual behaviour - Audio playback resumes through speakers ### Environment data Audiobookshelf Version: - [ ] Android App? - [x] iOS App? #### iOS Issue (Using the macOS/iOS Apple Silicon integration) iOS Version: macOS 14.2.1 (23C71) iPhone model: MacBook with M1 Pro chip I suspect the issue is here: https://github.com/advplyr/audiobookshelf-app/blob/3c6d4b5f1917c235ee03f545e4a72de75ee60153/ios/App/Shared/player/AudioPlayer.swift#L612, my headphones send a "pause" command when they're placed back in the case, which Audiobookshelf is treating as Pause/Play. Switching this to support the [pause/play/stop/togglePlayPause commands](https://developer.apple.com/documentation/mediaplayer/mpremotecommandcenter) may resolve it, but I don't have an iOS dev setup right now to test that fix.
adam added the bugiOS labels 2026-04-24 23:42:38 +02:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#927