flutter_new_badger 1.0.0 copy "flutter_new_badger: ^1.0.0" to clipboard
flutter_new_badger: ^1.0.0 copied to clipboard

A flutter project to handle app icon badges for iOS, macOS and android

flutter_new_badger #

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.

Please also add the following to your Info.plist:

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

Android #

On Android, no official API exists to show a badge in the launcher. But some devices (Samsung, HTC...) support the feature.

Dart #

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

import 'package:flutter_new_badger/flutter_new_badger.dart';

Then you can add a badge:

FlutterBadger.setBadge(1);

Remove a badge:

FlutterBadger.removeBadge();
3
likes
0
points
6.29k
downloads

Publisher

unverified uploader

Weekly Downloads

A flutter project to handle app icon badges for iOS, macOS and android

License

unknown (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on flutter_new_badger