title: Flutter - How to remove notification icon from the status bar and notification count badge from app launcher icon on app open?
body: <p>I am using the firebase with my flutter application. The application is built for both iOS &amp; Android platforms. Upon receiving the notification, if I click on the notification, the notification icon from the status bar removes including the notification count badge from the app launcher icon.</p>
  <p>But, if I tap on the launcher icon instead of the notification, the notification icon in the status bar remains including the notification count badge in the app launcher icon.</p>
  <p>As per the <a href="https://pub.dev/packages/flutter_app_badger" rel="nofollow noreferrer">documentation</a>, to solve the issue, this is what I have done so far:</p>
  <pre><code>import ...
  import 'package:flutter_app_badger/flutter_app_badger.dart';
  import ...
  
  removeTheNotifications() async {
      if(await FlutterAppBadger.isAppBadgeSupported()){
        FlutterAppBadger.updateBadgeCount(0);
        FlutterAppBadger.removeBadge();
      }
  }
  </code></pre>
  <p>And calling this method in the build function of the flutter screen:</p>
  <pre><code>removeTheNotifications();
  </code></pre>
  <p>But it makes no difference and does not work. Thanks</p>