Closed oliviermtl closed 2 years ago
Downgrading targetSdkVersion to 30, solves the issue, the notification is still flagged as indirect but is not blocked.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
I'm seeing this issue with v4.3.1.
The issue has been closed for inactivity.
I am also seeing this issue with 4.3.1
Solved by downgrading targetSdkVersion = 31 to targetSdkVersion = 30 in build.gradle
Edit : Unfortunatly with this change in targetSdkVersion, you cannot deploy on google play store your app because it now requires at least version 31 for security reasons. A fix for this issue is highly needed
Still seeing the issue even with 4.3.3
Same here. Can this be reopened??
When app is killed notification is created by firebase so we need to update firebase core library for targetSdkVersion>30. In file ./android/app/build.gradle replace implementation 'com.google.firebase:firebase-core:16.0.0' by implementation platform('com.google.firebase:firebase-bom:31.1.1') implementation 'com.google.firebase:firebase-messaging' implementation 'com.google.firebase:firebase-analytics'
./android/app/build.gradle
dependencies {
...
implementation project(':react-native-notifications')
implementation platform('com.google.firebase:firebase-bom:31.1.1')
implementation 'com.google.firebase:firebase-messaging'
implementation 'com.google.firebase:firebase-analytics'
}
Thank you @asdemura, I was facing the same issue and your fix did the trick 👍
This seems to still be an issue with version 4.3.5
- Android push notifications do not open the app and if you look at the log cat in Android studio you see NotificationService: Indirect notification activity start (trampoline) from com.xxx.xxx blocked
@asdemura 's workaround fixes the issue for us.
Thank you @asdemura, I fixed my issue and the app works well
On Android 12, when app is killed or in background, tapping the notification does not open the app. Adb logcat shows : NotificationService: Indirect notification activity start (trampoline) from com.xxx.xxx blocked Turning off _NOTIFICATION_TRAMPOLINEBLOCK in App Compatibility Changes makes the app open after tapping the notification.
"react-native-notifications": "^4.3.1" "react-native": "0.68.2"
build.gradle
manifest `<manifest xmlns:android="http://schemas.android.com/apk/res/android" xmlns:tools="http://schemas.android.com/tools" package="com.xxx.xxx">
`