Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

I have this problem when starting an application #32

Open
eduardohr-muniz opened this issue May 7, 2023 · 1 comment
Open

I have this problem when starting an application #32

eduardohr-muniz opened this issue May 7, 2023 · 1 comment

Comments

@eduardohr-muniz
Copy link

image
image

@jiusanzhou
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants