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

Notification - Not posted. PendingIntents attached to actions with remote inputs must be mutable #1190

Closed
zamojski opened this issue Apr 20, 2023 · 1 comment
Labels

Comments

@zamojski
Copy link

Describe the bug
ACRA Notification plugin on Android 13 doesn't show the notification and fails with below stack trace.

2023-04-20 22:37:27.298 10589-10630/info.zamojski.soft.towercollector W/ACRA: Report interaction threw exception, will be ignored.
    java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: 0|info.zamojski.soft.towercollector|666|null|10159 Not posted. PendingIntents attached to actions with remote inputs must be mutable
        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:191)
        at org.acra.interaction.ReportInteractionExecutor.performInteractions(ReportInteractionExecutor.kt:50)
        at org.acra.builder.ReportExecutor.execute(ReportExecutor.kt:134)
        at org.acra.builder.ReportBuilder.build(ReportBuilder.kt:151)
        at org.acra.reporter.ErrorReporterImpl.uncaughtException(ErrorReporterImpl.kt:105)
        at info.zamojski.soft.towercollector.MyApplication$1.uncaughtException(MyApplication.java:112)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1073)
        at java.lang.ThreadGroup.uncaughtException(ThreadGroup.java:1068)
        at java.lang.Thread.dispatchUncaughtException(Thread.java:2306)
     Caused by: java.lang.IllegalArgumentException: 0|info.zamojski.soft.towercollector|666|null|10159 Not posted. PendingIntents attached to actions with remote inputs must be mutable
        at android.os.Parcel.createExceptionOrNull(Parcel.java:3015)
        at android.os.Parcel.createException(Parcel.java:2995)
        at android.os.Parcel.readException(Parcel.java:2978)
        at android.os.Parcel.readException(Parcel.java:2920)
        at android.app.INotificationManager$Stub$Proxy.enqueueNotificationWithTag(INotificationManager.java:3032)
        at android.app.NotificationManager.notifyAsUser(NotificationManager.java:678)
        at android.app.NotificationManager.notify(NotificationManager.java:628)
        at android.app.NotificationManager.notify(NotificationManager.java:604)
        at org.acra.interaction.NotificationInteraction.performInteraction(NotificationInteraction.kt:100)
        at org.acra.interaction.ReportInteractionExecutor.performInteractions$lambda$2$lambda$1(ReportInteractionExecutor.kt:43)
        at org.acra.interaction.ReportInteractionExecutor.$r8$lambda$XxbE04P1atFd9l_vyYmPLWgTl20(Unknown Source:0)
        at org.acra.interaction.ReportInteractionExecutor$$ExternalSyntheticLambda0.call(Unknown Source:6)
        at java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
        at java.lang.Thread.run(Thread.java:1012)
     Caused by: android.os.RemoteException: Remote stack trace:
        at com.android.server.notification.NotificationManagerService.checkDisqualifyingFeatures(NotificationManagerService.java:6932)
        at com.android.server.notification.NotificationManagerService.enqueueNotificationInternal(NotificationManagerService.java:6590)
        at com.android.server.notification.NotificationManagerService.enqueueNotificationInternal(NotificationManagerService.java:6442)
        at com.android.server.notification.NotificationManagerService$10.enqueueNotificationWithTag(NotificationManagerService.java:3467)
        at android.app.INotificationManager$Stub.onTransact(INotificationManager.java:1286)

Here's the configuration - ACRA configuration within the app.

Expected behavior
A notification is posted to provide input before sending report.

Version

  • Android: 13
  • ACRA 5.9.7
@F43nd1r F43nd1r added the bug label Apr 22, 2023
@F43nd1r
Copy link
Member

F43nd1r commented Apr 23, 2023

Sorry, this is probably not the answer you want to see:

The issue here is the remote input for comments. While debugging that feature I hit another bug (https://issuetracker.google.com/issues/159152393), which was closed as "intended behaviour". As a result of this "intended behaviour" (you getting my sarkasm yet, google??) this feature cannot be implemented correctly on API >=29.

I will be deprecating the comment input in notifications with the next release and not show it on API>=29.

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

No branches or pull requests

2 participants