katzer / cordova-plugin-local-notifications

Cordova Local-Notification Plugin
Apache License 2.0
2.57k stars 1.76k forks source link

Android 12 (SDK 31+): Tap on notifications only opens app when notifications are grouped. #1990

Closed fragfeaster777 closed 1 month ago

fragfeaster777 commented 2 years ago

WARNING: IF YOU IGNORE THIS TEMPLATE, WE'LL IGNORE YOUR ISSUE. YOU MUST FILL THIS IN!

Provide a general summary of the issue.

Your Environment

Expected Behavior

On Android 12, after an app is killed or in the background, tapping on a notification does not open the app. Adb logcat shows the following:

NotificationService: Indirect notification activity start (trampoline) from com.xxx.xxx blocked

The same happens when 2 and 3 notifications from the same app have been queued up.

However, when more than 3 notifications are queued and these notifications are grouped together, tapping on any of these notifications opens up the app.

Happy to do any testing to further debug.

Actual Behavior

App should open with tapping a single notification

Steps to Reproduce

  1. When a single notification is triggered, tap on it. App is not opened.
  2. When 2 or 3 notifications are triggered, tapping on any of them doesn't open the app.
  3. When notifications are grouped, tapping on any of them opens up the app.

Context

Open app when tapping notification

Debug logs

NotificationService: Indirect notification activity start (trampoline) from com.xxx.xxx blocked