New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistent autoplay behavior when connected to Android Auto #6698
Comments
I doubt there's that much in the logs but here they are:
|
Upon further testing, I noticed that:
With Google Podcasts in the below scenario, it would be ready to go with the player already open, set to resume my queue, and it was only awaiting me to manually tap play. Here, there's the extra step of tapping back into the app, then tapping the top of my queue to resume. So it's a relatively minor setback in user workflow, and I'm partially willing to bet that it's because Google Podcasts was somehow more "integrated" with my phone (Pixel 7 Pro) than AntennaPod is. I would then just hope that AntennaPod knows by default to resume playback from the top of the queue without the extra intermediary manual step, but it's honestly a very minor issue in an otherwise excellent app. |
I can confirm that this is annoying 'bug' in Android Auto since I use AP frequently in my car and many others have chimed in https://forum.antennapod.org/t/android-auto-not-continuing-playback/3108?u=tonytamsf |
This issue has been mentioned on AntennaPod Forum. There might be relevant details there: https://forum.antennapod.org/t/android-auto-not-continuing-playback/3108/8 |
Is anyone willing to test out a debug build that should address this bug The apk is in the Checks tab here Android auto resume by tonytamsf · Pull Request #6766 · AntennaPod/AntennaPod · GitHub download it from https://github.com/AntennaPod/AntennaPod/suites/18235922573/artifacts/1053611078 |
Apk is no longer available. |
I see this same behavior, but it is not inconsistent -- it is 100% consistent. Every single time I use Antenna pod with Android Auto, I get the "for you" view, and nothing is playing. Even if I was JUST playing a podcast on that vehicle, turned off the car (e.g. to refuel), and restarted the vehicle without ever disconnecting the USB cable to my phone. I'd be happy to test a debug build. |
There is an apk to test in this pull request: |
@fakerli - have you been able to use this APK in android auto? I installed it to my phone, and of course, I then had two AntennaPod apps installed. The android auto "customize launcher" only showed one, so I uninstalled my original play store AntennaPod, thinking maybe the customize tool didn't like two apps with the same name (although this debug APK does have "Debug" on the end of the name). Now the customize launcher doesn't allow me to select AntennaPod. I tried rebooting just in case, but still can't select AntennaPod for the AA launcher. Is there something I need to do so I can add it to the launcher? |
@jpriebe My wife has my car at the moment. I'll get it back in about 24 hours :-D Will check then! |
I can see it in the customization settings, but I have unknown sources enabled in AA developer settings. Try if this helps:
Check if it works. Maybe you need to reinstall the apk. Note: I'm on a Dutch system, so names of options might not be exact, but you should be able to find them. |
Ahhh, developer mode -- that makes sense. AA has its own safety mechanism to prevent sideloading. Your steps worked perfectly. After I turned on unknown sources, I did have to uninstall and reinstall the apk for the launcher customizer to show the AntennaPod Debug application. Thanks for such a useful comment! Now to drive around with the new build and see what happens. |
I got the debug APK to show up in Android Auto, but it gives me an error when trying to open it. |
I did some tests with the debug APK and this is what I see: |
Same experience. To be transparent, I've only tested 2 times since getting the debug apk installed, so take that for what it's worth. I started the day by listening to a podcast on AntennaPod on my phone's speaker in the house. I stopped the playback before leaving the house to get in the car. I connected the phone to the car, and it immediately resumed playback (a little unexpected, but still better than showing the "for you" screen). After work, I connected the phone to the car again, and the playback started up again automatically. This is an improvement, but I think it should honor the Android Auto setting for auto resume. |
For the most part, my experience over a week or so with the debug build was pretty good. Like I mentioned in my previous comment, it was not honoring the "Start music automatically" setting in Android Auto. But auto playing is preferable to starting on the "For You" page and requiring a bunch of navigation to the episodes list to find your episode. I saw that https://github.com/AntennaPod/AntennaPod/pull/6766/files was closed. Sounds like more investigation is required. I hope that a fix will come soon. The debug build doesn't seem to auto-download episodes (regardless of settings), so I'm back to the Play store version. |
Thanks folks for testing it. The PR fix I made was a bit hacky hence I closed it until I can figure out a better solution #6766 |
What does this "for you" screen show? Where does it come from? I don't think AntennaPod generates such a screen. Does it show AntennaPod episodes? |
I think "for you" is part of Google Maps? https://www.reddit.com/r/PodcastAddict/s/rCCfsh25DW |
I tested this and the behavior of the "current" tab is as described. |
@bartlibert Thanks for testing. Is it an acceptable fix for the issue? |
Doesn't your fix still require users to open the app, navigate to the "current" screen, and press the song? This doesn't sound very different from going to the queue and pressing play. Does the additional screen make it harder to access other screens? |
@ByteHamster The current problem with going to the queue is that if you are not playing the episode from the top of the queue, it is hard to scroll and find the previous episode. I don't think this makes it harder to use the other screens.. but other test users can speak up. we can also move the current screen after Queue, Downloads |
It is already a huge improvement indeed, especially if you don't always play from the top of the queue (as I do). If spotify was the last app used to play audio on android auto, it will behave in one of two ways: |
Thank you @bartlibert for testing. I agree that my current quick fix is better than before, but I would rather have what Spotify is doing. I'll continue to look for a 'right' fix. I think my current quick fix is valuable to release until we can figure out the perfect fix since it's pretty painful right now. See this recent review with 84 'likes' pointing out this issue |
FYI, open source Ultrasonic app has the "correct" behavior, it might provide some inspiration: Gitlab |
Users mentioning this in Google Play reviews:
|
@tonytamsf Given that your 'desired' solution (like Spotify) isn't implemented yet, should we reopen this issue? |
I think this PR is the desired solution #6878 |
This issue has been mentioned on AntennaPod Forum. There might be relevant details there: https://forum.antennapod.org/t/resume-podcast-between-drives-on-android-auto/3728/13 |
Currently there's some code in AntennaPod that attempts to resume playback automatically, but ideally this should be handled by Android Auto. It looks like AntennaPod doesn't fill out the MediaSessionCompat object correctly, which prevents Android Auto from restarting the playback automatically or presenting an option to the user to do so. I'll investigate this further. |
@hades Feel free to take on this issue from me since I hadn't made much progress |
Talking about MediaSession, we should probably update to androidx media3 MediaSessions. That seems to need quite a large number of non-trivial code changes, though. I tried it at some point and then gave up |
Checklist
App version
3.1.1 (8073de5)
Where did you get the app from
Google Play
Android version
13
Device model
Pixel 7 Pro
First occurred
Since using the app
Steps to reproduce
This is difficult to reliably reproduce because it seems that it does this randomly and inconsistently, and I haven't figured out any sort of pattern to reproduce this.
Most of the time, the intended behavior would be to simply resume my podcast in progress upon connecting to Android Auto. I already have AA setup to resume my media on connect. I would say about 80-90% of the time this is the observed behavior.
I'm currently finding replacements for the soon-to-be-deprecated Google Podcasts app. This would pretty much be perfect if not for this bug. I will say that in the duration I've been using the app, I've always had at least something queued up, so the queue has never been empty.
Expected behaviour
Expected it to always autoplay upon connecting to Android Auto.
Current behaviour
What happens about 10-20% of the time is that it won't autoplay anything. The split-screen view will show 'For You', then I swipe that to view the AntennaPod session, and it says I have to tap to open it. At that point, I still have to go to the Queue tab and manually tap the topmost episode to continue playback.
Logs
Next time I observe this happening, I will export logs and paste them.
The text was updated successfully, but these errors were encountered: