Inspectopedia Help

Notification Launches Services or BroadcastReceivers

Notification Launches Services or BroadcastReceivers

Notifications should only launch activities -- that's what users expect (and has been the guidance in both the Android SDK and Material Design documentation for a while).

A Service or a BroadcastReceiver should not be used as an intermediate, because this can lead to significant performance problems, and as a result, this will not be allowed in Android 12.

Issue id: LaunchActivityFromNotification

https://developer.android.com/guide/topics/ui/notifiers/notifications?hl=en#Actions

https://material.io/design/platform-guidance/android-notifications.html#behavior

https://developer.android.com/guide/topics/ui/notifiers/notifications?hl=en

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for Android 2023.3, Qodana for JVM 2023.3

Plugin:

Android, 2022.3.1 Beta 2

Last modified: 13 July 2023