API <=26: MediaNotification will add a Badge to the App Icon
New APIs will never show a badge for a MediaStyle notification. It seems that for older API versions it needs to be deactivated manually.


### Media3 Version
1.0.0-beta02


diff --git a/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java b/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java
index 4b588cfda7..23bbb9f85d 100644
--- a/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java
+++ b/libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java
@@ -508,6 +508,9 @@ public class DefaultMediaNotificationProvider implements MediaNotification.Provi
             channelId,
             context.getString(channelNameResourceId),
             NotificationManager.IMPORTANCE_LOW);
+    if (Util.SDK_INT == 26 || Util.SDK_INT == 27) {
+      channel.setShowBadge(false);
+    }
     notificationManager.createNotificationChannel(channel);
   }
 
['libraries/session/src/main/java/androidx/media3/session/DefaultMediaNotificationProvider.java']