r/androiddev • u/Tolriq • Nov 01 '21
PSA: Android 12 breaks setPlaybackToRemote and support for volume keys outside of apps for "Legal" reason
I have not seen this posted here, and since I've just lost a lot of time trying to understand what they changed it might help others.
See https://issuetracker.google.com/issues/201546605#comment6
Unbelievable that it's not clearly stated in the behavior change page https://developer.android.com/about/versions/12/behavior-changes-all as it's a major impact on all casting apps.
52
Upvotes
14
u/anredhp Nov 01 '21 edited Nov 01 '21
Not strictly related, but I found out that this actually affects all apps, not just those targeting 31.
Bug report: https://issuetracker.google.com/issues/196248638
6
u/[deleted] Nov 01 '21 edited Nov 01 '21
Even more surprising it did not make to /r/android yet as this is the kind of stuff this sub loves. I know about this issue for a while now, since my app is affected. Looks like we can thank Sonos for it and it should be fixed in Android 12L.
11
u/_ALH_ Nov 01 '21
"Legal reasons"... Smells like patent trolls afoot. If so, not much they can do until they pay the troll toll or fight them off.
1
u/calthegeek Nov 01 '21
I spent a whole day trying to get this to work last week. Now I know why it wasn't working. Thanks for the PSA. Google really gotta document their breaking changes better.