flutter_notification_listener
flutter_notification_listener copied to clipboard
I have this problem when starting an application

You should put <user-permission> tag in root of <manifest> not the <application>, like bellow,
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="im.zoe.labs.flutter_notification_listener_example">
<uses-permission android:name="android.permission.WAKE_LOCK" />
<uses-permission android:name="android.permission.RECEIVE_BOOT_COMPLETED"/>
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<application> ...
please checkout the example for more detail. https://github.com/jiusanzhou/flutter_notification_listener/blob/master/example/android/app/src/main/AndroidManifest.xml#L4