-
Notifications
You must be signed in to change notification settings - Fork 468
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
Error appearing new button in API notification 33 #940
Comments
I was able to make the modification in the app but now I get 2 notifications.
But how do I make it so that there is only one notification, the thing is that if I remove my personalized notification, no notification will appear. Only when I take mine out do both jump. |
What you are doing in the code above is creating and posting an additional notification through You can customize the notification posted by Media3 by using your own You can set your custom provider by using |
In the end I did it another way, remove android:foregroundServiceType="mediaPlayback" |
You should keep Regarding changing the custom commands of the notification, you need to maintain the custom layout of the media notification controller. I recommend to do a custom 'like' and a custom 'unlike' command and then alternate them upon user interaction. Please see the documentation around 'custom layout' and the section about the media notification controller. |
But it's strange because when I remove it the notification works perfectly and I'm using API 34
If I put it with android:foregroundServiceType="mediaPlayback" I get two notifications
and if I remove I get a notification but it doesn't add the modified icons as a favorite
|
Also, if I remove my notification so that the session opens, the default one does not do so when I click player.play; |
Hello, I have reviewed all the old requests about the implementation of the notification in API 33. I have been trying to implement it in mine but it always appears by default, it does not modify it. I have been using codes from other requests from other colleagues and nothing, the button does not appear. I have looked at the guides on the Android developer website and the information is very scarce and they do it in dribs and drabs, they do not accompany it with codes and I think it lacks a better detailed explanation of how to make notifications work in API 33. This is my code that I use in my app and it works perfectly in the api less than 33 and from there it creates the default notification but I have used both codes from other guides such as those mentioned in #38, #200, #11027, #216 and many but but I can't find my mistake. I need help!!!!
The text was updated successfully, but these errors were encountered: