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

Fails to show notification on api 31+ #14

Closed
savvasdalkitsis opened this issue May 5, 2022 · 1 comment
Closed

Fails to show notification on api 31+ #14

savvasdalkitsis opened this issue May 5, 2022 · 1 comment

Comments

@savvasdalkitsis
Copy link

A required flag was added on api 31+ to the pending intent that the library is not adding:

2022-05-05 23:09:27.717 10486-10486/com.savvasdalkitsis.uhuruphotos.debug E/[PendingIntent:375 checkFlags]: java.lang.IllegalArgumentException: com.savvasdalkitsis.uhuruphotos.debug: 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}
    	at com.michaelflisar.feedbackmanager.Feedback.startNotification{Feedback.kt:70}
    	at com.michaelflisar.lumberjack.ExtensionNotificationKt.showCrashNotification{ExtensionNotification.kt:41}
    	at com.michaelflisar.lumberjack.ExtensionNotificationKt.showCrashNotification$default{ExtensionNotification.kt:19}
    	at com.savvasdalkitsis.uhuruphotos.log.initializer.LogInitializer.onAppCreated$lambda-0{LogInitializer.kt:44}
   
@MFlisar
Copy link
Owner

MFlisar commented Oct 19, 2022

@MFlisar MFlisar closed this as completed Oct 19, 2022
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