notification_reader 1.1.1 copy "notification_reader: ^1.1.1" to clipboard
notification_reader: ^1.1.1 copied to clipboard

PlatformAndroid

Read Notification in Your Flutter Application.

notification_reader #

Read Notification in Your Flutter Application.

Getting Started #

Install Plugin In Your Flutter Project #

flutter pub add notification_reader

Add This Code in Your AndroidManifest android/app/src/main/AndroidManifest.xml. Inside <application> tag #

<service android:name="com.fluttterbuddy.notification_reader.NotificationService"
    android:label="NotificationService"
    android:exported="true"
    android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
    <intent-filter>
        <action android:name="android.service.notification.NotificationListenerService" />
    </intent-filter>
</service>

Import Plugin in Your Project: #

import 'package:notification_reader/notification_reader.dart';

First Open Notification Reader Setting Using This: #

await NotificationReader.openNotificationReaderSettings;

Get Notification Data: #

NotificationData res = await NotificationReader.onNotificationRecieve();

Notification Data Class: #

res.packageName; // Application Package Name
res.title; // Notification Title
res.body; // Notification Body
res.data; // Data in Json

Buy Me A Coffee #

Buy Me A Coffee Using PhonePe #

9
likes
100
pub points
66%
popularity

Publisher

verified publisherflutterbuddy.in

Read Notification in Your Flutter Application.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on notification_reader