notifee: [targetSdk 31 / Android 12] - Indirect notification activity start (trampoline) from blocked

(Accidental submit 🤦‍♂️ ) I’m facing an issue when displaying a local notification after receiving data-only message in the background (using react-native-firebase). For android 12 devices, the app is not brought to foreground when tapping on notification. I need to press the app-icon to launch the app. Once the app is opened, it receives the notification and internal navigation works correctly.

On checking the logs and researching a bit about Android 12 notification changes, found that this error is thrown when I click on the notification.

Indirect notification activity start (trampoline) from <package-name> blocked

Here’s a screenshot of the logcat: There’s another error with notifee.hideNotificationDrawer(); but that’s for another day(issue).

notifee-issue

Text file for your convienience

react-native info

System:
    OS: macOS 11.1
    CPU: (6) x64 Intel(R) Core(TM) i5-8400 CPU @ 2.80GHz
    Memory: 396.46 MB / 16.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 14.18.1 - ~/.nvm/versions/node/v14.18.1/bin/node
    Yarn: Not Found
    npm: 6.14.15 - ~/.nvm/versions/node/v14.18.1/bin/npm
    Watchman: 2021.11.15.00 - /usr/local/bin/watchman
  Managers:
    CocoaPods: 1.11.2 - /usr/local/bin/pod
  SDKs:
    iOS SDK:
      Platforms: iOS 14.5, DriverKit 20.4, macOS 11.3, tvOS 14.5, watchOS 7.4
    Android SDK:
      API Levels: 25, 28, 29, 30, 31
      Build Tools: 28.0.3, 29.0.2, 30.0.2, 30.0.3, 31.0.0, 32.0.0
      System Images: android-30 | Google APIs Intel x86 Atom, android-31 | ARM 64 v8a, android-31 | Intel x86 Atom_64, android-31 | Google APIs Intel x86 Atom_64
      Android NDK: Not Found
  IDEs:
    Android Studio: 2020.3 AI-203.7717.56.2031.7784292
    Xcode: 12.5.1/12E507 - /usr/bin/xcodebuild
  Languages:
    Java: 11.0.11 - /usr/bin/javac
    Python: 2.7.16 - /usr/bin/python
  npmPackages:
    @react-native-community/cli: Not Found
    react: 16.13.1 => 16.13.1 
    react-native: 0.63.2 => 0.63.2 
    react-native-macos: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

package.json:

{
"dependencies": {
    "@notifee/react-native": "^4.0.0",
    "@react-native-async-storage/async-storage": "^1.15.4",
    "@react-native-community/art": "^1.2.0",
    "@react-native-community/blur": "^3.6.0",
    "@react-native-community/clipboard": "^1.5.1",
    "@react-native-community/netinfo": "^6.0.0",
    "@react-native-firebase/app": "^13.0.1",
    "@react-native-firebase/crashlytics": "^13.0.1",
    "@react-native-firebase/messaging": "^13.0.1",
    "@react-native-masked-view/masked-view": "^0.2.6",
    "@react-navigation/native": "^5.1.5",
    "@twotalltotems/react-native-otp-input": "^1.3.11",
    "axios": "^0.19.2",
    "lodash": "^4.17.21",
    "react": "16.13.1",
    "react-native": "0.63.2",
    "react-native-drop-shadow": "^0.0.2",,
    "react-native-exit-app": "^1.1.0",
    "react-native-fast-image": "^8.3.4",
    "react-native-fs": "^2.17.0",
    "react-native-gesture-handler": "^1.5.0",
    "react-native-image-crop-picker": "^0.36.2",
    "react-native-keychain": "6.1.1",
    "react-native-linear-gradient": "^2.4.0",
    "react-native-modal": "^11.10.0",
    "react-native-paper": "^4.8.1",
    "react-native-permissions": "^3.0.3",
    "react-native-reanimated": "^2.1.0",
    "react-native-responsive-fontsize": "^0.5.0",
    "react-native-restart": "^0.0.22",
    "react-native-safe-area-context": "^0.7.3",
    "react-native-screens": "^2.10.1",
    "react-native-vector-icons": "^8.1.0",
    "react-native-version-info": "^1.1.0",
    "react-native-video": "^2.3.1",
    "react-navigation": "^4.4.4",
    "reanimated-bottom-sheet": "*",
    "rn-fetch-blob": "^0.12.0",
    "validate.js": "0.13.1"
  }
}

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 6
  • Comments: 16 (9 by maintainers)

Most upvoted comments

Why not just paste the text in thinking ? This is a rich text environment 😃

Hate scrolling through huge error logs in issue comments 😛 , sorry about that.

You should have no problem with targetSdk30 / compileSdk31

Okay will try out this config and report back here.

I think this needs to stay open, there is a workaround of using targetSdkVersion 30, but we will eventually (by Nov 1, 2022) need to support targetSdkVersion 31

If notifee actually requires compileSdkVersion 31, I suspect there are features that don’t work on targetSdkVersion 30. Is my assumption correct? Running my app on the lower targetSdkVersion 30 as a workaround for the notification problem, what features of notifee would not work? Is there a source I can use to find such compatibilities out myself?