FLUTTER ECOSYSTEM

DigitalInnovationGroup/flutter_app_badge

Unterstützung zum Aktualisieren des App-Badges auf iOS

Projektcover von flutter_app_badge
Stars
2
Forks
1
Letzter Push (UTC)
21.07.2023
Projektstatus
Aktiv
DigitalInnovationGroup GitHub avatar
GITHUB Organization

DigitalInnovationGroup ↗

SprachenDartObjective-CRuby

Technische Themen

Verwendete Abhängigkeiten

Abhängigkeiten 1 Einträge
  • flutter{"sdk":"flutter"}

Original-README

Englischer Projektschnappschuss. Aktuelle Inhalte auf GitHub.

Projekt-README ein-/ausklappen

Flutter app badge 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);