MailSender not showing share window on Xiaomi Android 10
See original GitHub issueI am using ACRA 5.5.1 in React Native 0.61.2. I am using Dailog + Mailer feature to send the crash reports. `@AcraCore(buildConfigClass = BuildConfig.class, reportFormat = StringFormat.JSON) @AcraMailSender(mailTo = “email”, resSubject = R.string.acra_mail_subject, reportFileName = “ErrorReport”, reportAsFile = true) @AcraToast(resText = R.string.acra_toast_text) public class MainApplication extends Application implements ReactApplication {
@Override protected void attachBaseContext(Context base) { super.attachBaseContext(base); CoreConfigurationBuilder builder = new CoreConfigurationBuilder(this) .setBuildConfigClass(BuildConfig.class) .setReportFormat(StringFormat.JSON); builder.getPluginConfigurationBuilder(ToastConfigurationBuilder.class) .setResText(R.string.acra_toast_text); builder.getPluginConfigurationBuilder(MailSenderConfigurationBuilder.class) .setMailTo(“email”) .setResSubject(R.string.acra_mail_subject) .setReportFileName(“ErrorReport”) .setReportAsFile(true); ACRA.init(this, builder); }}`
Now, when I am using the APK in android 5.0, everytime my app crashes it open up a small window at bottom to share the report via email. Phone is Sony Xperia E2362.
But when I am using the APK in Android 10, phone xiaomi poco f1. It doesn’t show me any window to share the file. But right after I install my app, xiaomi scans the app and gives one option to open it. And when I open the app from that window I get that share report via email popup, after the app crashes. But not when I normally open my app from app menu. Bellow image shows the app scanning window which shows an option to open app and the second image which shows the share report via email when I use scanning window to open app.
https://i.stack.imgur.com/qXWPP.jpg
https://i.stack.imgur.com/II1BF.jpg
I don’t know what am I missing. Please help.
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
you can also have a look at https://dontkillmyapp.com/xiaomi and see if you are able to effect things with settings changes
If you are, then you can detect the restrictions during normal app execution and open the settings panel without too much fuss - it’s device-specific code which is never fun but the snippets are all over stackoverflow at least
I just got finished with another Xiaomi bug myself - they don’t let you set TextField ActionCode handlers, so you can’t help your users with contextual text actions. It’s always something with them in my experience. Super popular though so 🤷
Superseded by #804