react-native-push-notification
react-native-push-notification copied to clipboard
Unable to start receiver com.dieam.reactnativepushnotification.modules.RNPushNotificationActions: java.lang.SecurityException: Permission Denial: android.intent.action.CLOSE_SYSTEM_DIALOGS broadcast from com.package.name requires android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS.
Bug
Environment info
OS: macOS 13.6
CPU: (6) x64 Intel(R) Core(TM) i5-8500B CPU @ 3.00GHz
Memory: 42.14 MB / 8.00 GB
Shell: 5.9 - /bin/zsh
Binaries: Node: 18.13.0 - /usr/local/bin/node Yarn: 1.22.19 - /usr/local/bin/yarn npm: 8.19.3 - /usr/local/bin/npm Watchman: 2023.09.25.00 - /usr/local/bin/watchman Managers: CocoaPods: 1.13.0 - /Users/radd/.rvm/gems/ruby-2.7.6/bin/pod SDKs: iOS SDK: Platforms: DriverKit 23.0, iOS 17.0, macOS 14.0, tvOS 17.0, watchOS 10.0 Android SDK: API Levels: 29, 33 Build Tools: 28.0.3, 29.0.1, 29.0.2, 29.0.3, 30.0.3, 33.0.0, 34.0.0 System Images: android-29 | Google APIs Intel x86 Atom, android-33 | Google APIs ARM 64 v8a, android-33 | Google APIs Intel x86_64 Atom Android NDK: Not Found IDEs: Android Studio: 2022.2 AI-222.4459.24.2221.10121639 Xcode: 15.0/15A240d - /usr/bin/xcodebuild Languages: Java: 11.0.20.1 - /usr/bin/javac npmPackages: @react-native-community/cli: Not Found react: 18.2.0 => 18.2.0 react-native: ^0.72.5 => 0.72.5 react-native-macos: Not Found npmGlobalPackages: react-native: Not Found
Library version: ^8.1.1
Describe what you expected to happen:
- Be able to open the application upon pressing the action button in the notification.
Hi @rajyon, i have the same problem let me know if anyone have any solution
https://github.com/zo0r/react-native-push-notification/pull/2385
Update react-native-push-notification package OR
comment line 65; //context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
path : node_modules/react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationActions.java