FLUTTER ECOSYSTEM

DigitalInnovationGroup/flutter_app_badge

iOS पर ऐप बैज को अपडेट करने का समर्थन

flutter_app_badge प्रोजेक्ट कवर
Stars
2
Forks
1
अंतिम पुश (UTC)
21 जुल॰ 2023
प्रोजेक्ट स्थिति
सक्रिय
DigitalInnovationGroup GitHub avatar
GITHUB Organization

DigitalInnovationGroup ↗

भाषाएँDartObjective-CRuby

तकनीकी विषय

उपयोग की गई निर्भरताएँ

निर्भरता सूची 1 आइटम
  • flutter{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

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);