flutter_app_badge 2.0.1 copy "flutter_app_badge: ^2.0.1" to clipboard
flutter_app_badge: ^2.0.1 copied to clipboard

PlatformiOS

Plugin to update the app badge on the launcher iOS and macOS

Flutter App Badger plugin #

Pub

Fork of flutter_app_badger.

This plugin for Flutter adds the ability to change the badge of the IOS app.

Ios badge

Getting Started #

iOS #

On iOS, the notification permission is required to update the badge. It is automatically asked when the badge is added or removed.

Enable Remote notification in XCode:

IOS Remote notification

Or add in <project>/ios/Runner/Info.plist:

<key>UIBackgroundModes</key>
<array>
    <string>remote-notification</string>
</array>

Dart #

First, you just have to import the package in your dart files with:

import 'package:flutter_app_badge/flutter_app_badge.dart';

Then you can add a badge:

FlutterAppBadge.count(1);

Remove a badge:

FlutterAppBadge.count(0);
29
likes
160
points
12.7k
downloads

Publisher

unverified uploader

Weekly Downloads

Plugin to update the app badge on the launcher iOS and macOS

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_app_badge