Skip to content

Commit

Permalink
Don't show badges for notification
Browse files Browse the repository at this point in the history
  • Loading branch information
ghenry22 committed May 16, 2021
1 parent 967cebd commit 434d5e2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/android/MusicControlsNotification.java
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,11 @@ public MusicControlsNotification(Activity cordovaActivity, int id){
// Configure the notification channel.
mChannel.setDescription(description);

this.notificationManager.createNotificationChannel(mChannel);
}
// Don't show badges for this channel
mChannel.setShowBadge(false);

this.notificationManager.createNotificationChannel(mChannel);
}
}

// Show or update notification
Expand Down

0 comments on commit 434d5e2

Please sign in to comment.