Read Notification in Your Flutter Application.
flutter pub add notification_reader
Add This Code in Your AndroidManifest android/app/src/main/AndroidManifest.xml. Inside <application> tag
<serviceandroid:name="com.fluttterbuddy.notification_reader.NotificationService"android:label="NotificationService"android:exported="true"android:permission="android.permission.BIND_NOTIFICATION_LISTENER_SERVICE">
<intent-filter>
<actionandroid:name="android.service.notification.NotificationListenerService" />
</intent-filter>
</service>import'package:notification_reader/notification_reader.dart';awaitNotificationReader.openNotificationReaderSettings;NotificationData res =awaitNotificationReader.onNotificationRecieve();res.packageName; // Application Package Name
res.title; // Notification Title
res.body; // Notification Body
res.data; // Data in Json