pocket-casts-android icon indicating copy to clipboard operation
pocket-casts-android copied to clipboard

Android Auto doesn't play because of 'Warn before using data' setting

Open igotdes opened this issue 3 years ago • 8 comments

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

igotdes avatar Jul 07 '22 02:07 igotdes

Also reported in #5327187-zen.

igotdes avatar Jul 07 '22 02:07 igotdes

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!

igotdes avatar May 11 '24 05:05 igotdes

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 avatar May 12 '24 22:05 geekygecko

@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

mebarbosa avatar May 23 '24 16:05 mebarbosa

Let me investigate to try to figure out why it isn't working for me.

geekygecko avatar May 24 '24 13:05 geekygecko

Could your device be treating your 5G as an unmetered network? If I comment out this section, it works. GitHub

geekygecko avatar May 24 '24 13:05 geekygecko

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?

mebarbosa avatar May 24 '24 13:05 mebarbosa

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.

geekygecko avatar May 26 '24 22:05 geekygecko