I have two services who both create notifications independently from each other. But when I start them both, They are like "fighting"(go up and down) for the position. I hope anyone knows how to fix it. Thank you.
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How can I create this custom Bottom Navigation on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
Too late but the solution is to not create a new instance of NotificationCompat.Builder, use the same builder in every updates of your notification to avoid overlapping animation.
I had a similar problem and I tried all sorts of methods. I was eventually able to solve it using sharedpreferences. Although this isn't a relatively popular way of doing this, it helps because you can keep track of every notification sent. Here's a code snippet:
I hope this helps.. Merry coding!!!