question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

JobSenderService cannot be executed on my device

See original GitHub issue

Customer define YourOwnSender and send method not called and I debug find JobSenderService cannot be start.

Version

  • Android: 10
  • ACRA: implementation “ch.acra:acra-core:5.7.0”
  • Code:
@AcraCore(
    buildConfigClass = BuildConfig::class,
    reportFormat = StringFormat.JSON,
    applicationLogFile = "applog.log",
    applicationLogFileDir = Directory.FILES,
    reportContent = [ReportField.APP_VERSION_NAME, ReportField.ANDROID_VERSION, ReportField.PHONE_MODEL, ReportField.CUSTOM_DATA, ReportField.STACK_TRACE, ReportField.LOGCAT],
    reportSenderFactoryClasses = [YourOwnSenderfactory::class])
open class MyApplication : Application() {
...
  override fun attachBaseContext(base: Context?) {
        super.attachBaseContext(base)
        ACRA.DEV_LOGGING = true
        ACRA.init(this)
    }
}
public class YourOwnSenderfactory implements ReportSenderFactory {

    @Override
    public ReportSender create(Context context, CoreConfiguration config) {
        return new YourOwnSender();
    }

    @Override
    public boolean enabled(@NonNull CoreConfiguration coreConfig) {
        return true;
    }
}

public class YourOwnSender implements ReportSender {

    @Override
    public void send(Context context, CrashReportData report) throws ReportSenderException {
        try {
            Log.e("YourOwnSender", report.toJSON());
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
F43nd1rcommented, Oct 16, 2020

You got a Xiaomi device?

0reactions
F43nd1rcommented, Oct 19, 2020

Yeah, a known issue, specifically #804

This isn’t ACRAs fault, Xiaomi messed up their android implementation. We are working on a potential workaround, follow that issue for progress.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ReportField - ACRA
Installation unique ID. This identifier allow you to track a specific user application installation without using any personal data. USER_EMAIL.
Read more >
Automated Malware Analysis Report for ULRSsQC2Vv.apk ...
Has permission to perform phone calls in the background. Tries to detect Virtualbox. May take a camera picture. Queries the phones location (GPS)....
Read more >
org.acra.log.ACRALog.e java code examples - Tabnine
Collect results of the <code>dumpsys meminfo</code> command restricted to this application process. * * @return The execution result.
Read more >
Manyverse 0.2005.5-beta crashes on open (#920) · Issues
I'm using the GrapheneOS variant of Android on a Pixel 3A and retrieved as well as updated the Manyverse app via F-Droid (current...
Read more >
flutter exception has occurred. gsheetsexception ... - You.com
The caller does not have the permission to execute the specific operation. but ... [✓] Android toolchain - develop for Android devices (Android...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found