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 don't know it showing the error below #1923

Closed
SivaStwx opened this issue Mar 14, 2023 · 2 comments
Closed

I don't know it showing the error below #1923

SivaStwx opened this issue Mar 14, 2023 · 2 comments

Comments

@SivaStwx
Copy link

SivaStwx commented Mar 14, 2023

Describe the bug
I've initiailized the android settings in main() but donno why I'm getting this errror need Help!!

To Reproduce

/MethodChannel#dexterous.com/flutter/local_notifications( 9515): Failed to handle method call
E/MethodChannel#dexterous.com/flutter/local_notifications( 9515): java.lang.IllegalArgumentException: package_name: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
E/MethodChannel#dexterous.com/flutter/local_notifications( 9515): Strongly consider using FLAG_IMMUTABLE, only use FLAG_MUTABLE if some functionality depends on the PendingIntent being mutable, e.g. if it needs to be used with inline replies or bubbles.

Expected behavior

it needs to send the notification

Sample code to reproduce the problem

@MaikuB
Copy link
Owner

MaikuB commented Mar 16, 2023

This is happening as you're running on Android 12 or higher and you're not using a more recent version of the plugin that supports Android 12+. If you've searched for similar messages you should find this was raised and closed before as part of the plugin being updated to support changes required by Android 12

@SivaStwx
Copy link
Author

Thanks for the reply @MaikuB as I've already resolved the issue now it is working very wel.

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