FLUTTER ECOSYSTEM

DigitalInnovationGroup/flutter_app_badge

iOS에서 앱 배지 업데이트 지원

flutter_app_badge 프로젝트 이미지
Stars
2
Forks
1
최근 푸시(UTC)
2023. 7. 21.
프로젝트 상태
활성
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);