- Jun 6, 2020
- 11,559
- 4,422
Targeting SDK level 31+ gives me a crash when trying to fire a notification using
Is there a manifest change that would fix it or is a library update needed?
برای دیدن لینک ها باید ثبت نام کنید
.Caused by: java.lang.IllegalArgumentException: b4a.example3: Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE be specified when creating a PendingIntent.
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.
at android.app.PendingIntent.checkFlags(PendingIntent.java:375)
at android.app.PendingIntent.getActivityAsUser(PendingIntent.java:458)
at android.app.PendingIntent.getActivity(PendingIntent.java:444)
at android.app.PendingIntent.getActivity(PendingIntent.java:408)
... 32 more
Click to expand...
Is there a manifest change that would fix it or is a library update needed?
برای دیدن لینک ها باید ثبت نام کنید