Skip to content
This repository was archived by the owner on Jan 14, 2025. It is now read-only.
This repository was archived by the owner on Jan 14, 2025. It is now read-only.

PushNotification.invokeApp does not work in Android 12+ , possibly because of Notification trampoline restrictions #2334

Closed
@sujayjaju

Description

@sujayjaju

Bug

Environment info

react-native info output:

System:
    OS: Windows 10 10.0.22621
    CPU: (8) x64 11th Gen Intel(R) Core(TM) i7-1185G7 @ 3.00GHz
    Memory: 1.86 GB / 15.84 GB
  Binaries:
    Node: 14.20.0 - ~\AppData\Local\Temp\yarn--1670940874250-0.047929254082552886\node.CMD
    Yarn: 1.22.19 - ~\AppData\Local\Temp\yarn--1670940874250-0.047929254082552886\yarn.CMD
    npm: 7.22.0 - ~\Dev\Ancoria\PFMApp\app\node_modules\.bin\npm.CMD
    Watchman: 20220911.220011.0 - C:\Lib\watchman-v2022.09.12.00-windows\bin\watchman.EXE
  SDKs:
    Android SDK: Not Found
    Windows SDK: Not Found
  IDEs:
    Android Studio: AI-212.5712.43.2112.8815526
    Visual Studio: Not Found
  Languages:
    Java: 11.0.16.1 - C:\Program Files\Common Files\Oracle\Java\javapath\javac.EXE
  npmPackages:
    @react-native-community/cli: Not Found
    react: 17.0.2 => 17.0.2
    react-native: ^0.67.0-0 => 0.67.4
    react-native-windows: Not Found
  npmGlobalPackages:
    *react-native*: Not Found

Library version: 8.1.1

Steps To Reproduce

  1. Setup up a local notification with actions and invokeApp false
PushNotification.localNotification({
...
    invokeApp: false, 
    actions,
...
})
  1. Call invoke app in onAction:
    onAction: function (notification) {
      // process
      PushNotification.invokeApp(notification);
    },

...

Describe what you expected to happen:

1. App should come to foreground, but it does not

Reproducible sample code

See above

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions