pocket-casts-android
pocket-casts-android copied to clipboard
Android Auto doesn't play because of 'Warn before using data' setting
Detect if the user is playing through Android Auto and ignore the 'Warn before using data' setting as there is no way to show this through the Android Auto interface.
Original discussion: p1645166055659499-slack-C02A333D8LQ
Also reported in #5327187-zen.
Also reported in Google Play Store 3-star review:
Bug that almost made me give up on it... I listen to podcasts almost exclusively in the car using Android Auto. Gave this a try but every time I went to play an episode it would get to the episode screen, then when I pressed play it would close it and go back to the main screen. Every time. I only just worked out that it's because I turned on the option to warn about using data. This isn't supposed to affect Android Auto. But it was. Just turned it off and it works again now. Not great!
It would be good to fix this issue, here are the steps to reproduce it.
- Start the Android Auto head unit
cd /Applications/android-sdk/extras//google/auto/
# first time add the execute permission
chmod +x ./desktop-head-unit
./desktop-head-unit --usb
- Plug in a USB device with WiFi off but mobile data on
- Open Settings -> Storage & data use
- Turn on "Warn before using data"
- Try to play an episode that isn't downloaded Notice that you can't play the episode.
https://github.com/Automattic/pocket-casts-android/assets/308331/9978eedc-6c25-4976-9fe3-7c2bb856e9ce
@geekygecko I am following your steps but It's working for me. I am connected to 5G and have this toggle enabled but I am able to play on auto.
I am wondering if I am missing anything
Let me investigate to try to figure out why it isn't working for me.
Could your device be treating your 5G as an unmetered network? If I comment out this section, it works. GitHub
Could your device be treating your 5G as an unmetered network? If I comment out this section, it works. GitHub
I can confirm that my 5G network is working as expected. @geekygecko Would you like to open the PR since you said that modifying GitHub works?
I'm not quite sure of the fix yet, as we can't comment out that section. It needs to warn the user they are on mobile data when they start from the phone but not from Android Auto. I'm not sure there is a way we know they started playing from Android Auto. I will take a look into it.