nhtdev1/ear
एंड्रॉइड के लिए आने वाली सभी नोटिफिकेशन को हैंडल करने के लिए एक प्लगइन
- Stars
- 2
- Forks
- 0
- अंतिम पुश (UTC)
- 8 अप्रैल 2022
- प्रोजेक्ट स्थिति
- सक्रिय
भाषाएँ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)