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

Send email report not working on Android 13 and Gmail #1179

Closed
arcanewater opened this issue Apr 3, 2023 · 15 comments
Closed

Send email report not working on Android 13 and Gmail #1179

arcanewater opened this issue Apr 3, 2023 · 15 comments
Labels

Comments

@arcanewater
Copy link

Describe the bug
Looks like something has changed again with latest Gmail (or Android) update as it stopped working with sending emails, previously #1118 fixed it but now it stopped working again, i unable to get any usefull logs as it tries to open Gmail but it closes immediately. There is a shortcut for temp fix if you have multiple emails and it pops selection menu you choose gmail it works okay, but if you only have Gmail its not working

Version

  • Android: 13
  • ACRA: 5.9.7
@itanium99
Copy link

itanium99 commented Apr 4, 2023

However, this cannot be the case in general. On my Samsung Tablet device, Android 13, OneUI 5.1 and ACRA 5.9.7, after a crash, latest Gmail is started automatically with attachment and the user is able to send mail, but only if I have only one e-mail app installed. As soon as I install Outlook in addition, Outlook is always started. So I never see the selector because the method sendWithSelector brings up the exception ActivityNotFoundException, which then falls back to sendLegacy. I added a separate routine to enable the user to send the error log by Mail (and selector before) afterwards, which is working because this is called in my app without previous crash. I know this all won't help you but i wanted to express there are obviously different behaviors on different devices.

@F43nd1r
Copy link
Member

F43nd1r commented Apr 5, 2023

This probably falls into the same issue category as #1146. Unfortunately I have not been able to find a generic solution for all devices. There are multiple workarounds discussed in #1146 and related PRs, but all of those only work on certain devices and cause issues on others.

@F43nd1r F43nd1r added the bug label Apr 5, 2023
@arcanewater
Copy link
Author

Interesting is that this was already working but now again failing (Pixel 6)

@F43nd1r
Copy link
Member

F43nd1r commented Apr 8, 2023

Please test with 5.9.8-beta01 - I have removed using selector intents on tiramisu. Need data on how this changes things for you.

@arcanewater
Copy link
Author

Tried upgrading to 5.9.8-beta01 but now i receive error where i am extending CrashReportDialog

error: cannot access CrashReportDialog
public final class CustomReportDialog extends org.acra.dialog.CrashReportDialog {
                                                             ^
  bad class file: \.gradle\caches\transforms-3\fd18062a6c38c3bd05dcff78b783d9bd\transformed\acra-dialog-5.9.8-beta01-api.jar(/org/acra/dialog/CrashReportDialog.class)
    class file has wrong version 61.0, should be 55.0
    Please remove or make sure it appears in the correct subdirectory of the classpath.

@F43nd1r
Copy link
Member

F43nd1r commented Apr 9, 2023

@arcanewater Unintended side effect of 15d7379 is release requires Java 17. I'll see if I can make the next release compatible with 11 again.

@arcanewater
Copy link
Author

Email with this change is working again 👍

@yuriykulikov
Copy link
Contributor

Works now on my Pixels. Thank you!

@arcanewater
Copy link
Author

I see there are already changes for JDK 11 support possible for new release @F43nd1r ?

@itanium99
Copy link

(1) With 5.9.8-beta02 selector is showing up after my app has crashed - providing GMail and Outlook (OK)
(2) But there is no attachment (txt) in the mail generated afterwards (NOK)
(3) After uninstalling Outlook, GMail is started automatically without selector (OK) and attachment is correctly there (OK)

@itanium99
Copy link

Problem (2) still existing under ACRA 5.10.0
Log just shows "No email client supporting attachments found. Attachments will be ignored" when showing up selector for GMail and Outlook.

@F43nd1r
Copy link
Member

F43nd1r commented Jun 19, 2023

@itanium99 in the future please open new issues instead of responding to closed ones - I have a lot of traffic in my inbox and can easily miss comments on closed stuff (as I did with your earlier message).

@itanium99
Copy link

itanium99 commented Jun 19, 2023

I apologize for the confusion. Since I was involved here the day after this ticket was created, I thought my feedback belonged in here. After all, except for a heart emoji, no other response came. Thank you for your efforts. I will continue to test intensively.

@F43nd1r
Copy link
Member

F43nd1r commented Jun 19, 2023

No worries, as I caught your message this time your scenario (2) is now fixed with 5.10.1. Thanks for testing.

@itanium99
Copy link

I tried my scenarios with 5.10.1 - everything is working now as expected. Thanks a lot!

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

4 participants