FLUTTER ECOSYSTEM

nhtdev1/ear

一个用于处理 Android 所有通知的插件

耳 项目封面
Stars
2
Forks
0
最近推送(UTC)
2022年4月8日
项目状态
未归档
nhtdev1 GitHub avatar
GITHUB User

nhtdev1 ↗

Ho Chi Minh City University of Technology and EducationHo Chi Minh City
语言JavaDartSwiftRubyObjective-C

使用的依赖

依赖清单 2 项
  • flutter{"sdk":"flutter"}
  • flutter_test开发依赖{"sdk":"flutter"}

原始 README

以下为英文项目原文快照,最新内容请访问 GitHub。

展开 / 收起项目 README

ear

iconoir_chat-bubble-check-1

A Library to handle all coming notification for android

Supported Platforms

  • Android

⚙️ Android Setup

# add this line to your dependencies
ear: ^0.0.5
import 'package:ear/ear.dart';

1. Subcribe to stream to listen all coming notification

 void startListening() {
    try {
     StreamSubscription<EarModel> _earSubscription = Ear.instance.earStream.listen(onData);
    } on EarModel catch (exception) {
      print(exception);
    }
  }
2. Unsubcribe from stream
 _earSubscription?.cancel();
3. Call register to start listenning
 Ear.register();
4. To check type of specific notifcation
earModel.isFromFacebook();
earModel.isFromGmail();
earModel.isFromSkype();
...

If you need any features suggest

...

Help needed for iOS

Looking for iOS Dev who can check out and fix the issues releated to iOS (I dont have a Mac and iOS)