-
-
Notifications
You must be signed in to change notification settings - Fork 981
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
android lock screen/notification ignores capabilities #1775
Comments
Please read this issue |
Thanks @jspizziri ! I did try looking for related issues before opening this one but clearly missed that one 🤦 |
@jspizziri I'm still seeing the behavior described in this ticket, even on the nightly build (3.2.0-e742959cc1d697d69daeade39830155bce2ccde7). Is the expected behavior of this library / KotlinAudio to show certain controls regardless of whether the relevant capabilities are passed? I had expected that omitting capabilities would hide the controls (rather than having controls that don't do anything) My code:
|
@jspizziri Can we re-open this? I'm seeing this same issue on the example app in this repo, making only these changes necessary to repro:
It should show the rewind icon and forward icon with these changes, instead of the skip track backward/forward icons, right? |
@sam1463 |
@jspizziri can you re-open this issue? It's still occurring on the current version of the library (3.2.0) and is easily reproducible in the example app. |
This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 7 days. |
Seems like this is still an issue on the example project. |
So it looks like the cause is a behavior change in Android 13: https://developer.android.com/about/versions/13/behavior-changes-13#playback-controls |
I fixed this for the most part in the KotlinAudio library through doublesymmetry/KotlinAudio#64 |
This comment was marked as resolved.
This comment was marked as resolved.
@puckey I'm wondering what the status is here, is there something we can do to help to get this merged in? Testing on android 13, ... |
Tried 4.0-rc1 and seekto, jumpforward and jumpbackward seem to work, but I'm not seeing RemotePlay and RemotePause events come in. I verified it on the example app as well. |
This seems unrelated to this particular issue. Please use discord to ask questions and create distinct issues for new issues. |
Considering this fixed. |
@sam1463 Did you solve this? |
Describe the Bug
Not sure if this is intended or not, but it is counterintuitive.
If I specify
notificationCapabilities
andcompactCapabilities
that do not includeSkipToNext
orSkipToPrevious
, I would not expect the buttons for those functionalities to appear on the notification controls for android. I do not want to enable those controls, but it seems there is no option except to have those buttons appear, and simply not function if I don't provide those capabilities. Additionally, I am providingRemoteJumpForward
andRemoteJumpBackward
, and the controls for that do not show up on the android notification.Steps To Reproduce
Instantiate track player like in the docs, and provide the following capabilities. The notification controls show the skip to previous track button regardless, and show the skip to next track as long as you're not on the last track in the list of tracks. The "jump" controls are not shown.
I think the notification should check capabilities for displaying these, rather than doing it solely based on the length of
tracks
and current track index.Code To Reproduce
Replicable on Example App?
Can you replicate this bug in the React Native Track Player Example App?
Environment Info:
Paste the results of
npx react-native info
Paste the exact
react-native-track-player
version you are using3.2.0
Real device? Or simulator? real android device - pixel 4 on api 33
What OS are you running? android 13 / api 33
How I can Help
What can you do to help resolve this?
Have you investigated the underlying JS or Swift/Android code causing this bug?
Can you create a Pull Request with a fix?
The text was updated successfully, but these errors were encountered: