Not working send e-mail with GMail on Android 13
See original GitHub issuePixel 6, Android 13, Build number: T1B3.221003.003. ACRA version: 5.9.6
Gmail is installed and working good. Autosync is enabled for GMail. But not working send e-mail from crash notification.
ACRA configuration in Application.attachBaseContext():
CoreConfigurationBuilder builder = new CoreConfigurationBuilder()
.withBuildConfigClass(BuildConfig.class)
.withReportFormat(StringFormat.KEY_VALUE_LIST)
.withAdditionalSharedPreferences(Arrays.asList(APPLICATION_PREFS_NAME));
builder.withPluginConfigurations(
new NotificationConfigurationBuilder()
.withChannelName(getString(R.string.notification_channel_crash_report))
.withChannelImportance(NotificationManager.IMPORTANCE_HIGH)
.withResIcon(R.drawable.ic_exclamation_notify)
.withTitle(getString(R.string.acra_notification_title))
.withText(getString(R.string.acra_notification_text))
.withResSendButtonIcon(0)
.withResDiscardButtonIcon(0)
.withSendOnClick(true)
.withEnabled(true)
.build(),
new MailSenderConfigurationBuilder()
.withMailTo("henrich.gron@gmail.com")
.withSubject("PhoneProfilesPlus" + packageVersion + " - " + getString(R.string.acra_email_subject_text))
.withBody(body)
.withReportAsFile(true)
.withReportFileName("crash_report.txt")
.withEnabled(true)
.build()
);
Crash log generated after application start:
16:40:22.646 ACRA E Failed to send crash reports for /data/user/0/sk.henrichg.phoneprofilesplus/app_ACRA-approved/2022-10-07T17:01:51.976+02:00.stacktrace
org.acra.sender.ReportSenderException: Policy marked this task as incomplete. ACRA will try to send this report again.
at org.acra.sender.ReportDistributor.sendCrashReport(ReportDistributor.kt:109)
at org.acra.sender.ReportDistributor.distribute(ReportDistributor.kt:65)
at org.acra.sender.SendingConductor.sendReports(SendingConductor.kt:50)
at org.acra.scheduler.DefaultSenderScheduler.scheduleReportSending(DefaultSenderScheduler.kt:61)
at org.acra.scheduler.SchedulerStarter.scheduleReports(SchedulerStarter.kt:49)
at org.acra.startup.StartupProcessorExecutor.processReports$lambda-5$lambda-4(StartupProcessorExecutor.kt:60)
at org.acra.startup.StartupProcessorExecutor.$r8$lambda$o2NE53IEwtcT_aLpWXA2a4JC9OE(Unknown Source:0)
at org.acra.startup.StartupProcessorExecutor$$ExternalSyntheticLambda0.run(Unknown Source:6)
at java.lang.Thread.run(Thread.java:1012)
Caused by: org.acra.sender.ReportSenderException: No email client found
at org.acra.sender.EmailIntentSender.sendWithSelector(EmailIntentSender.kt:124)
at org.acra.sender.EmailIntentSender.send(EmailIntentSender.kt:66)
at org.acra.sender.ReportSender.send(ReportSender.kt:59)
at org.acra.sender.ReportDistributor.sendCrashReport(ReportDistributor.kt:101)
at org.acra.sender.ReportDistributor.distribute(ReportDistributor.kt:65)
at org.acra.sender.SendingConductor.sendReports(SendingConductor.kt:50)
at org.acra.scheduler.DefaultSenderScheduler.scheduleReportSending(DefaultSenderScheduler.kt:61)
at org.acra.scheduler.SchedulerStarter.scheduleReports(SchedulerStarter.kt:49)
at org.acra.startup.StartupProcessorExecutor.processReports$lambda-5$lambda-4(StartupProcessorExecutor.kt:60)
at org.acra.startup.StartupProcessorExecutor.$r8$lambda$o2NE53IEwtcT_aLpWXA2a4JC9OE(Unknown Source:0)
at org.acra.startup.StartupProcessorExecutor$$ExternalSyntheticLambda0.run(Unknown Source:6)
at java.lang.Thread.run(Thread.java:1012)
Caused by: android.content.ActivityNotFoundException: No Activity found to handle Intent { act=android.intent.action.SEND_MULTIPLE flg=0x10000001 clip={null {U(content)}} (has extras) sel=act=android.intent.action.SENDTO dat=mailto: flg=0x10000000} }
at android.app.Instrumentation.checkStartActivityResult(Instrumentation.java:2200)
at android.app.Instrumentation.execStartActivity(Instrumentation.java:1839)
at android.app.ContextImpl.startActivity(ContextImpl.java:1101)
at android.app.ContextImpl.startActivity(ContextImpl.java:1072)
at android.content.ContextWrapper.startActivity(ContextWrapper.java:432)
at org.acra.sender.EmailIntentSender.sendWithSelector(EmailIntentSender.kt:122)
at org.acra.sender.EmailIntentSender.send(EmailIntentSender.kt:66)
at org.acra.sender.ReportSender.send(ReportSender.kt:59)
at org.acra.sender.ReportDistributor.sendCrashReport(ReportDistributor.kt:101)
at org.acra.sender.ReportDistributor.distribute(ReportDistributor.kt:65)
at org.acra.sender.SendingConductor.sendReports(SendingConductor.kt:50)
at org.acra.scheduler.DefaultSenderScheduler.scheduleReportSending(DefaultSenderScheduler.kt:61)
at org.acra.scheduler.SchedulerStarter.scheduleReports(SchedulerStarter.kt:49)
at org.acra.startup.StartupProcessorExecutor.processReports$lambda-5$lambda-4(StartupProcessorExecutor.kt:60)
at org.acra.startup.StartupProcessorExecutor.$r8$lambda$o2NE53IEwtcT_aLpWXA2a4JC9OE(Unknown Source:0)
at org.acra.startup.StartupProcessorExecutor$$ExternalSyntheticLambda0.run(Unknown Source:6)
at java.lang.Thread.run(Thread.java:1012)
Issue Analytics
- State:
- Created a year ago
- Comments:24 (10 by maintainers)
Top Results From Across the Web
Fix sync errors with the Gmail Android app - Google Help
Open the Gmail app . · On the left, tap Menu Menu and then Settings. · Tap your account. · Make sure the...
Read more >Is Gmail not working? Try these fixes! - Android Authority
Is Gmail not working? Try these fixes! · Is Gmail down? · Close and reopen Gmail · Make sure Sync Gmail is on...
Read more >14 Best Fixes To Gmail Notifications Not Working On Android
Check Gmail Notification Settings; Disable the Battery Optimization for Gmail; Disable Data Saver on Your Android Phone; Enable Auto Sync; Give ...
Read more >Top 17 Fixes for Gmail Not Showing New Emails on Android
Step 1: Launch the Gmail app and tap on the three-bar icon. ... Step 2: Scroll down and tap on Settings. You will...
Read more >Fixed: Gmail Notifications Not Working Android! - YouTube
Not receiving Notifications from Gmail App on Android, especially after Android 12. Check out the best ways to fix Gmail notification not ......
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@yuriykulikov that warning is indeed part of the problem. The ClassCastException is not, it has to be ignored as I can’t prevent it from appearing in the logs. Has been there for a long time but doesn’t matter.
Investigation shows the problem is with gmail and Android 13 security behaviour changes. Basically gmail doesn’t match intents with a selector or without a mime type anymore.
I had to implement a double fallback to match it on my device. Unfortunately this also means #831 might still show up on android 13+ devices.
@F43nd1r, 5.9.7 works! 😃
Tested in Pixel 6, Android 13, installed only GMail.
Thank you very much.
EDIT: But not working in Galaxy S21, One UI 5, without installed Samsung E-mail. 😢