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.

Implementing your own sender

See original GitHub issue

I write my own implementation base on this page : ACRA Document this is what i do but not work in debug and Logcat why? plz help

@AcraCore(reportSenderFactoryClasses = YourOwnSenderfactory.class)
public class MyApplication extends Application {
    @Override
    protected void attachBaseContext(Context base) {
        super.attachBaseContext(base);

        ACRA.init(this);
    }
}
public class YourOwnSender implements ReportSender {
    @Override
    public void send(Context context, CrashReportData report) throws ReportSenderException {
        Log.e("logerrr", "testttttt");
    }
}
public class YourOwnSenderfactory implements ReportSenderFactory {
    @NonNull
    @Override
    public ReportSender create(@NonNull Context context, @NonNull CoreConfiguration config) {
        return null;
    }
    @Override
    public boolean enabled(@NonNull CoreConfiguration config) {
        return false;
    }
}

build.gradle file

android {
    compileSdkVersion 27
    defaultConfig {
        applicationId "app.vahid.testlogsender"
        minSdkVersion 17
        targetSdkVersion 27
        versionCode 1
        versionName "1.0"
        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
    compileOptions {
        sourceCompatibility JavaVersion.VERSION_1_8
        targetCompatibility JavaVersion.VERSION_1_8
    }
}

dependencies {
    implementation fileTree(dir: 'libs', include: ['*.jar'])
    implementation 'com.android.support.constraint:constraint-layout:1.0.2'
    implementation "ch.acra:acra-toast:5.1.3"
    implementation "ch.acra:acra-core:5.1.3"
    implementation 'com.android.support:support-v4:27.0.2'
}

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:19 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
F43nd1rcommented, Jul 1, 2018

Senders run in a separate process. To debug them you have to attach the debugger to that process.

0reactions
F43nd1rcommented, Aug 9, 2018

Do you mean ch.acra:acra:4.11?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Senders - ACRA
You can implement your own ReportSender and configure ACRA to use that instead of or in addition to other senders. Kotlin; Java. class...
Read more >
How to develop a Transport Connector Sender
In this document we are going to show you how to develop your own custom Connector Sender. With that said, we recommend you...
Read more >
Custom SMS sender Lambda trigger - Amazon Cognito
Amazon Cognito sends SMS message events as requests to a Lambda function. The custom code of your function must then process and deliver...
Read more >
ACRA email sender - android - Stack Overflow
I found the problem, the 5.5.0 release of ACRA not work for me, I changed it to: implementation "ch.acra:acra-mail:5.4.0" implementation ...
Read more >
How to Set up SMTP for a Form - Jotform
You're done with the custom sender email setup. Now, select the newly added custom sender email in the Emails setting of your form....
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