title: How to change app notification badge count programmatically without sending notification (java/android)
body: <p>I want to change the notification badge count every time a user arrives at the home page (or presses a button for testing purposes). The only way I can do that right now is by sending a notification like so:</p>
  
  <pre><code>Notification notification = new NotificationCompat.Builder(MainActivity.this, CHANNEL_ID)
    .setContentTitle("New Messages")
    .setContentText("You've received 3 new messages.")
    .setSmallIcon(R.drawable.ic_notify_status)
    .setNumber(messageCount)
    .build();
  </code></pre>
  
  <p>However, I want to change the badge count without sending a notification as I don't want to clutter up the notification panel.</p>