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 does not launch intent #1191

Closed
jefflongo opened this issue Apr 22, 2023 · 2 comments
Closed

Notification does not launch intent #1191

jefflongo opened this issue Apr 22, 2023 · 2 comments
Labels

Comments

@jefflongo
Copy link

Required reading
https://github.com/ACRA/acra/wiki/How-to-debug-ACRA

Describe the bug
When using a notification to prompt the user to submit a bug report with something like MailSender, the following error arises:

Indirect notification activity start (trampoline) from com.example.acracrashdemo blocked

The following demo application can reproduce the bug using the API 33 resizable emulator device. Seems like this could be related to some changes with Android 12.

The ACRA initialization looks like this:

ACRA.init(this, new CoreConfigurationBuilder()
        .withBuildConfigClass(BuildConfig.class)
        .withReportFormat(StringFormat.JSON)
        .withLogcatArguments("-t", "100", "-v", "long")
        .withPluginConfigurations(
                new NotificationConfigurationBuilder()
                        .withTitle("title")
                        .withText("text")
                        .withChannelName(getString(R.string.app_name))
                        .withSendOnClick(true)
                        .build(),
                new MailSenderConfigurationBuilder()
                        .withMailTo("dummy@dummy.com")
                        .withReportAsFile(true)
                        .withReportFileName("filename")
                        .withSubject("Subject")
                        .withBody("body")
                        .build()
        )
);

Expected behavior
Tapping the notification should launch the email application.

Version

  • Samsung S22+
  • Android: 13 (API 33)
  • ACRA 5.9.8-beta02
  • Compile SDK version: 33
  • Target SDK version: 33
  • Java
@F43nd1r F43nd1r added the bug label Apr 22, 2023
@F43nd1r
Copy link
Member

F43nd1r commented Apr 23, 2023

Note that the workaround for this issue is an intermediate activity instead of a broadcast receiver. If the phone is slow enough, this activity might be visible to the user (but I can't make it transparent because android detects it and flags it as background if I try).

@jefflongo
Copy link
Author

Can confirm this solved the issue. Thanks!

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