diff --git a/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java b/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java index 33db95b1..c5bfdbf7 100644 --- a/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java +++ b/android/src/main/java/com/tanguyantoine/react/MusicControlModule.java @@ -140,9 +140,13 @@ public void init() { createChannel(context); } nb = new NotificationCompat.Builder(context, CHANNEL_ID); + nb.setVisibility(Notification.VISIBILITY_PUBLIC); if (!(Build.MANUFACTURER.toLowerCase(Locale.getDefault()).contains("huawei") && Build.VERSION.SDK_INT < Build.VERSION_CODES.M)) { - nb.setStyle(new MediaStyle().setMediaSession(session.getSessionToken())); + MediaStyle style = new MediaStyle(); + style.setMediaSession(session.getSessionToken()); + style.setShowActionsInCompactView(new int[]{0,1,2}); + nb.setStyle(style); } state = pb.build();