[Android] Chromecast doesnt continue scanning connections #910

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

Originally created by @patienttruth on GitHub (Mar 10, 2024).

Steps to reproduce

  1. Open podcast or audiobooks
  2. Play file

Expected behaviour

  • based on screenshots and feature list, I'd imagine I'd expect to see a Chromecast icon.

Actual behaviour

  • no cast icon is present

Environment data

Audiobookshelf Version: 2.8.0

  • [ X] Android App?
  • iOS App?

Android Issue

Android version: 14

Device model: Pixel 6

Stock or customized system: GrapheneOS

Additional Information:

Initially I was on 2.7.2, however I updated to 2.8.0 while preparing this report. Upon initial boot I restarted the Android App, and I saw the cast icon, and was able to select a cast target. It showed as connected, however it would not start playing.

Eventually the app stopped and when I opened it back up the cast icon no longer shows up.

Originally created by @patienttruth on GitHub (Mar 10, 2024). ### Steps to reproduce 1. Open podcast or audiobooks 2. Play file 3. ### Expected behaviour - based on screenshots and feature list, I'd imagine I'd expect to see a Chromecast icon. ### Actual behaviour - no cast icon is present ### Environment data Audiobookshelf Version: 2.8.0 - [ X] Android App? - [ ] iOS App? #### Android Issue Android version: 14 Device model: Pixel 6 Stock or customized system: GrapheneOS # Additional Information: Initially I was on 2.7.2, however I updated to 2.8.0 while preparing this report. Upon initial boot I restarted the Android App, and I saw the cast icon, and was able to select a cast target. It showed as connected, however it would not start playing. Eventually the app stopped and when I opened it back up the cast icon no longer shows up.
adam added the bugandroid labels 2026-04-24 23:42:03 +02:00
Author
Owner

@advplyr commented on GitHub (Mar 11, 2024):

The cast icon only shows up when it sees a device that can be casted to. Make sure your device can see a chromecast device.

@advplyr commented on GitHub (Mar 11, 2024): The cast icon only shows up when it sees a device that can be casted to. Make sure your device can see a chromecast device.
Author
Owner

@patienttruth commented on GitHub (Mar 12, 2024):

The cast icon only shows up when it sees a device that can be casted to. Make sure your device can see a chromecast device.

My other apps (Antennapod, etc) can see and connect / play to the chromecast devices. If it's normally a functional feature I'll dive into my networking as there have been some other bugs that somehow aren't affecting the other apps.

@patienttruth commented on GitHub (Mar 12, 2024): > The cast icon only shows up when it sees a device that can be casted to. Make sure your device can see a chromecast device. My other apps (Antennapod, etc) can see and connect / play to the chromecast devices. If it's normally a functional feature I'll dive into my networking as there have been some other bugs that somehow aren't affecting the other apps.
Author
Owner

@patienttruth commented on GitHub (Mar 12, 2024):

I'm not sure if this provides insight, but I found an error in my Home Assistant Cast Log. At fist I thought "why would this be showing in a HA log, but I'm starting to thing that it's aware of the media sources that cast, and therefore is able to log when the Chromecast has a related error.

Failed to cast media https://bookshelf.lab.X.com/api/items/X/file/X?token=X. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address

Is it necessary for audio bookshelf to be publicly accessible? If so I apologize as I must have missed that.

@patienttruth commented on GitHub (Mar 12, 2024): I'm not sure if this provides insight, but I found an error in my Home Assistant Cast Log. At fist I thought "why would this be showing in a HA log, but I'm starting to thing that it's aware of the media sources that cast, and therefore is able to log when the Chromecast has a related error. ``` Failed to cast media https://bookshelf.lab.X.com/api/items/X/file/X?token=X. Please make sure the URL is: Reachable from the cast device and either a publicly resolvable hostname or an IP address ``` Is it necessary for audio bookshelf to be publicly accessible? If so I apologize as I must have missed that.
Author
Owner

@advplyr commented on GitHub (Mar 14, 2024):

I'm not sure about that, I think it depends on the device. Have you tested it?

@advplyr commented on GitHub (Mar 14, 2024): I'm not sure about that, I think it depends on the device. Have you tested it?
Author
Owner

@advplyr commented on GitHub (Mar 19, 2024):

Were you able to resolve this issue?

@advplyr commented on GitHub (Mar 19, 2024): Were you able to resolve this issue?
Author
Owner

@sydlexius commented on GitHub (Apr 8, 2024):

I can reproduce this issue on my S22 Ultra. I can appreciate that if my device let its wifi radio sleep that it might lose contact with nearby devices, but my expectation would be that if I switch between Audiobookshelf accounts that it should make another sweep/scan of my environment for other devices. As it stands, I basically have to force stop the app and relaunch it to do this.

@sydlexius commented on GitHub (Apr 8, 2024): I can reproduce this issue on my S22 Ultra. I can appreciate that if my device let its wifi radio sleep that it might lose contact with nearby devices, but my expectation would be that if I switch between Audiobookshelf accounts that it should make another sweep/scan of my environment for other devices. As it stands, I basically have to force stop the app and relaunch it to do this.
Author
Owner

@BerendWouters commented on GitHub (Oct 19, 2024):

As it stands, I basically have to force stop the app and relaunch it to do this.

I have the same issue: my Moto G5 with Android 11 doesn't show the cast icon. On another device in the same network with a different ABS account has no problem casting.
Logging out/Switching server (basically logging out, force quit and logging in again with the same account) did the trick.

@BerendWouters commented on GitHub (Oct 19, 2024): > As it stands, I basically have to force stop the app and relaunch it to do this. I have the same issue: my Moto G5 with Android 11 doesn't show the cast icon. On another device in the same network with a different ABS account has no problem casting. Logging out/Switching server (basically logging out, force quit and logging in again with the same account) did the trick.
Author
Owner

@sydlexius commented on GitHub (Oct 22, 2024):

Can this issue be reopened? I am still impacted by this bug, and have had several new versions since my previous post.

@sydlexius commented on GitHub (Oct 22, 2024): Can this issue be reopened? I am still impacted by this bug, and have had several new versions since my previous post.
Author
Owner

@sydlexius commented on GitHub (Dec 23, 2024):

I still have issues with it sporadically not offering a Chromecast icon in Android. Since this might not be an easy issue for the devs to reproduce, perhaps it might be possible to configure the app such that, if Wi-Fi is disabled/reenabled, it can trigger another scan? This might be a more intuitive/convenient work-around until the root cause of this issue gets tracked down.

@sydlexius commented on GitHub (Dec 23, 2024): I still have issues with it sporadically not offering a Chromecast icon in Android. Since this might not be an easy issue for the devs to reproduce, perhaps it might be possible to configure the app such that, if Wi-Fi is disabled/reenabled, it can trigger another scan? This might be a more intuitive/convenient work-around until the root cause of this issue gets tracked down.
Author
Owner

@ckooistra commented on GitHub (Jun 23, 2025):

I am also struggling with this issue this is kind of a deal breaker for me as I cast audiobooks a lot at night from my phone lol. I am wondering if this can be addressed?

@ckooistra commented on GitHub (Jun 23, 2025): I am also struggling with this issue this is kind of a deal breaker for me as I cast audiobooks a lot at night from my phone lol. I am wondering if this can be addressed?
Author
Owner

@Landynu commented on GitHub (Dec 18, 2025):

I have this issue as well. Every morning I play via Bluetooth in my car, then get home and the cast button is no longer there. I then have to reboot in order to cast.

@Landynu commented on GitHub (Dec 18, 2025): I have this issue as well. Every morning I play via Bluetooth in my car, then get home and the cast button is no longer there. I then have to reboot in order to cast.
Author
Owner

@Landynu commented on GitHub (Dec 23, 2025):

I just submitted a pull request to always display the cast icon on Android. Through testing, this resolved all of my issues:

https://github.com/advplyr/audiobookshelf-app/pull/1762

@Landynu commented on GitHub (Dec 23, 2025): I just submitted a pull request to always display the cast icon on Android. Through testing, this resolved all of my issues: https://github.com/advplyr/audiobookshelf-app/pull/1762
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/audiobookshelf-app#910