diff --git a/acra-core/src/main/java/org/acra/ACRA.kt b/acra-core/src/main/java/org/acra/ACRA.kt index b73d295ade..a666e9ebaf 100644 --- a/acra-core/src/main/java/org/acra/ACRA.kt +++ b/acra-core/src/main/java/org/acra/ACRA.kt @@ -188,6 +188,7 @@ object ACRA { * @return true if the current process is the process running the SenderService. * NB this assumes that your SenderService is configured to used the default ':acra' process. */ + @JvmStatic fun isACRASenderServiceProcess(): Boolean { val processName = currentProcessName() debug { "ACRA processName='$processName'" } diff --git a/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt b/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt index c8dd4d10b4..452395d4cf 100644 --- a/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt +++ b/acra-notification/src/main/java/org/acra/receiver/NotificationBroadcastReceiver.kt @@ -41,8 +41,10 @@ import java.io.IOException class NotificationBroadcastReceiver : BroadcastReceiver() { override fun onReceive(context: Context, intent: Intent) { try { + debug { "NotificationBroadcastReceiver called with $intent" } val notificationManager = getNotificationManager(context) notificationManager.cancel(NotificationInteraction.NOTIFICATION_ID) + debug { "notification intent action = ${intent.action}" } if (intent.action != null) { when (intent.action) { NotificationInteraction.INTENT_ACTION_SEND -> {