Implementing your own sender
See original GitHub issueI 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:
- Created 5 years ago
- Comments:19 (10 by maintainers)
Top 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 >
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 Free
Top 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
Senders run in a separate process. To debug them you have to attach the debugger to that process.
Do you mean
ch.acra:acra:4.11
?