Originally created by @ZLoth on GitHub (Apr 5, 2024).
Is your feature request related to a problem? Please describe.
For one of my friends, they have a very limited mobile data plan on their mobile device, thus streaming/downloading should be avoided when they are not connected to WiFi
Describe the solution you'd like
A toggle in Settings that says "Connect to WiFi only". When enabled, any attempt to stream/download book will result in a error message.
Originally created by @ZLoth on GitHub (Apr 5, 2024).
### Is your feature request related to a problem? Please describe.
For one of my friends, they have a very limited mobile data plan on their mobile device, thus streaming/downloading should be avoided when they are not connected to WiFi
### Describe the solution you'd like
A toggle in Settings that says "Connect to WiFi only". When enabled, any attempt to stream/download book will result in a error message.
They may want to look at NetGuard (no root firewall) on Android. It allows you to control data connections by app based on whether you are connected to WiFi or mobile data. However, this would prevent their phone from syncing on mobile data if they block ABS.
I use NetGuard to block a lot of apps when on mobile data for the same reason.
@nichwall commented on GitHub (Apr 5, 2024):
Related to https://github.com/advplyr/audiobookshelf-app/issues/247
They may want to look at NetGuard (no root firewall) on Android. It allows you to control data connections by app based on whether you are connected to WiFi or mobile data. However, this would prevent their phone from syncing on mobile data if they block ABS.
I use NetGuard to block a lot of apps when on mobile data for the same reason.
They may want to look at NetGuard (no root firewall) on Android. It allows you to control data connections by app based on whether you are connected to WiFi or mobile data. However, this would prevent their phone from syncing on mobile data if they block ABS.
I use NetGuard to block a lot of apps when on mobile data for the same reason.
The syncing of the book status is very low in the bandwidth compared to streaming/downloading the media. Thus, completely blocking traffic isn't a good idea here.
@ZLoth commented on GitHub (Apr 5, 2024):
> Related to #247
>
> They may want to look at NetGuard (no root firewall) on Android. It allows you to control data connections by app based on whether you are connected to WiFi or mobile data. However, this would prevent their phone from syncing on mobile data if they block ABS.
>
> I use NetGuard to block a lot of apps when on mobile data for the same reason.
The syncing of the book status is very low in the bandwidth compared to streaming/downloading the media. Thus, completely blocking traffic isn't a good idea here.
I've been checking other apps that offer options to limit streaming/download over mobile networks, and I've found the following implementations:
Overcast: Provides an option to allow downloads only over Wifi or both Wifi and Cellular. If you attempt to download an episode over a mobile network, the app will ask if you want to permit that episode to be downloaded over the cellular network.
Apple Podcast: Very similar to Overcast, but it also has an option to block downloads if they exceed a specific size.
Pocket Cast: Offers options to allow downloads only over wifi, and an option to warn if streaming is being done over cellular.
Audible: Provides an option to allow streaming and downloading only from wifi.
Castro Box: Similar to Pocket Cast. It has an option to allow downloads over cellular and an option to warn if streaming over cellular or only play.
Spotify: This app provides an option to allow downloads using cellular data.
Prologue: This app offers an option to always allow downloads via cellular, or to turn it off, or to require confirmation.
Podbean: This app provides options to allow cellular downloads and cellular streaming.
All of these applications have very similar options.
In general, I think a good implementation could be:
@mfcar commented on GitHub (May 22, 2024):
I've been checking other apps that offer options to limit streaming/download over mobile networks, and I've found the following implementations:
-----
**Overcast:** Provides an option to allow downloads only over Wifi or both Wifi and Cellular. If you attempt to download an episode over a mobile network, the app will ask if you want to permit that episode to be downloaded over the cellular network.
<img width="395" alt="image" src="https://github.com/advplyr/audiobookshelf-app/assets/814828/f7b49537-ac99-4190-b3e7-f251e684ae3d">
---
**Apple Podcast:** Very similar to Overcast, but it also has an option to block downloads if they exceed a specific size.
<img width="395" alt="image" src="https://github.com/advplyr/audiobookshelf-app/assets/814828/8a891ed5-4eab-438b-981d-334c45dae214">
---
**Pocket Cast:** Offers options to allow downloads only over wifi, and an option to warn if streaming is being done over cellular.
<img width="395" alt="image" src="https://github.com/advplyr/audiobookshelf-app/assets/814828/3b150388-7616-4801-ab6d-28fd805106e3">
---
**Audible:** Provides an option to allow streaming and downloading only from wifi.

---
**Castro Box:** Similar to Pocket Cast. It has an option to allow downloads over cellular and an option to warn if streaming over cellular or only play.
<img width="395" alt="image" src="https://github.com/advplyr/audiobookshelf-app/assets/814828/d47baa95-9df1-431e-bebe-f7a67ba28399">
---
**Spotify:** This app provides an option to allow downloads using cellular data.

---
**Prologue:** This app offers an option to always allow downloads via cellular, or to turn it off, or to require confirmation.
<img width="395" alt="image" src="https://github.com/advplyr/audiobookshelf-app/assets/814828/72bed5fc-d7b2-455d-8856-17ad40d7ac3f">
---
**Podbean:** This app provides options to allow cellular downloads and cellular streaming.

---
All of these applications have very similar options.
In general, I think a good implementation could be:
- Allow cellular downloads (on, off, require confirmation)
- Allow cellular streaming (on, off, require confirmation)
Agreed. I'm very fortunate that I have unlimited data for streaming, but will still prefer to do the downloads on a WiFi network.
@ZLoth commented on GitHub (May 22, 2024):
> I've been checking other apps that offer options to limit streaming/download over mobile networks, and I've found the following implementations:
Very detailed. Thank you.
> All of these applications have very similar options. In general, I think a good implementation could be:
>
> * Allow cellular downloads (on, off, require confirmation)
> * Allow cellular streaming (on, off, require confirmation)
Agreed. I'm very fortunate that I have unlimited data for streaming, but will still prefer to do the downloads on a WiFi network.
@mfcar commented on GitHub (Jun 4, 2024):
> #1210
Sorry for the delay. I'm not familiar with the Android ecosystem and was trying to set up the dev environment on my machine. But, I found that the APKs are built automatically.
Here is the APK for the PR:
https://github.com/advplyr/audiobookshelf-app/actions/runs/9246204920
@github-actions[bot] commented on GitHub (Aug 13, 2024):
Fixed in [v0.9.75-beta](https://github.com/advplyr/audiobookshelf-app/releases/tag/v0.9.75-beta).
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @ZLoth on GitHub (Apr 5, 2024).
Is your feature request related to a problem? Please describe.
For one of my friends, they have a very limited mobile data plan on their mobile device, thus streaming/downloading should be avoided when they are not connected to WiFi
Describe the solution you'd like
A toggle in Settings that says "Connect to WiFi only". When enabled, any attempt to stream/download book will result in a error message.
@nichwall commented on GitHub (Apr 5, 2024):
Related to https://github.com/advplyr/audiobookshelf-app/issues/247
They may want to look at NetGuard (no root firewall) on Android. It allows you to control data connections by app based on whether you are connected to WiFi or mobile data. However, this would prevent their phone from syncing on mobile data if they block ABS.
I use NetGuard to block a lot of apps when on mobile data for the same reason.
@ZLoth commented on GitHub (Apr 5, 2024):
The syncing of the book status is very low in the bandwidth compared to streaming/downloading the media. Thus, completely blocking traffic isn't a good idea here.
@mfcar commented on GitHub (May 22, 2024):
I've been checking other apps that offer options to limit streaming/download over mobile networks, and I've found the following implementations:
Overcast: Provides an option to allow downloads only over Wifi or both Wifi and Cellular. If you attempt to download an episode over a mobile network, the app will ask if you want to permit that episode to be downloaded over the cellular network.
Apple Podcast: Very similar to Overcast, but it also has an option to block downloads if they exceed a specific size.
Pocket Cast: Offers options to allow downloads only over wifi, and an option to warn if streaming is being done over cellular.
Audible: Provides an option to allow streaming and downloading only from wifi.
Castro Box: Similar to Pocket Cast. It has an option to allow downloads over cellular and an option to warn if streaming over cellular or only play.
Spotify: This app provides an option to allow downloads using cellular data.
Prologue: This app offers an option to always allow downloads via cellular, or to turn it off, or to require confirmation.
Podbean: This app provides options to allow cellular downloads and cellular streaming.
All of these applications have very similar options.
In general, I think a good implementation could be:
@ZLoth commented on GitHub (May 22, 2024):
Very detailed. Thank you.
Agreed. I'm very fortunate that I have unlimited data for streaming, but will still prefer to do the downloads on a WiFi network.
@mfcar commented on GitHub (May 24, 2024):
I have started working on a prototype for this new setting. Feedback is appreciated.
#1210
@Maxklos commented on GitHub (May 30, 2024):
I think it's an great Idea. If you build an APK for me, I can test it on Android 14
@mfcar commented on GitHub (Jun 4, 2024):
Sorry for the delay. I'm not familiar with the Android ecosystem and was trying to set up the dev environment on my machine. But, I found that the APKs are built automatically.
Here is the APK for the PR:
https://github.com/advplyr/audiobookshelf-app/actions/runs/9246204920
@github-actions[bot] commented on GitHub (Aug 13, 2024):
Fixed in v0.9.75-beta.
@ZLoth commented on GitHub (Aug 14, 2024):
Thank you!