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

FlutterForegroundService.onStartCommand(FlutterForegroundService.java:36) #45

Open
EnterSoftwareSolutions opened this issue Sep 21, 2022 · 3 comments

Comments

@EnterSoftwareSolutions
Copy link

java.lang.IllegalArgumentException: com.entersoftware.iperiusremotedesktop: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
E/AndroidRuntime(29072): 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.

@GorIvanov
Copy link

Same....

@onstonboy
Copy link

Hello, any result on this please?

@onstonboy
Copy link

onstonboy commented Feb 26, 2023

I fixed it by replacing 0 to PendingIntent.FLAG_IMMUTABLE in FlutterForegroundService:
from:
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, 0);

to:
PendingIntent pendingIntent = PendingIntent.getActivity(this, 0, notificationIntent, PendingIntent.FLAG_IMMUTABLE);

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

3 participants