-
-
Notifications
You must be signed in to change notification settings - Fork 481
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 MediaControl button doesn't appear in the notification mediaplayer #401
Comments
fixed it. In case someone else is having this problem, this is what helped me: https://stackoverflow.com/questions/61005254/android-drawables-work-in-debug-but-become-black-squares-in-release |
This is interesting. Didn't the instructions on shrinking that I provided in the README work? Let me know if not and I'll need to update them. |
what happened was that i forgot what that line in app/build.gradle did, and i threw it out when i was modifying the file for production build. My bad. Thank you for your response though :) |
@girish54321 For me the problem was that I accidentally removed "shrinkResources false" line app/build.gradle when i was preparing my app for production. Check if you have it.
Check out the 2. step in the "Android setup" section of the README of this package. Hope this works for you. |
@eAvio thanks i will check this |
@eAvio hey it works thank you so much 👍👍 |
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs, or use StackOverflow if you need help with audio_service. |
Which API doesn't behave as documented, and how does it misbehave?
In the notification mediaplayer on android the media control buttons aren't drawn, but still can be pressed. This only happens on a release build made with "flutter build apk".
Minimal reproduction project
Unfortunately I don't know what causes this. Cloned example project from github works. I have the appropriate assets defined in the res folder too.
To Reproduce (i.e. user steps, not code)
I don't know.
Error messages
No error messages
Expected behavior
A notification media player with clearly visible buttons.
Screenshots
If applicable, add screenshots to help explain your problem.
Runtime Environment (please complete the following information if relevant):
Flutter SDK version
Flutter 1.18.0-13.0.pre
The text was updated successfully, but these errors were encountered: