react-native-push-notification icon indicating copy to clipboard operation
react-native-push-notification copied to clipboard

Missing permissions required by intent Intent.ACTION_CLOSE_SYSTEM_DIALOGS:

Open senolatac opened this issue 4 years ago • 17 comments

version: 8.1.0

When: When I call the ./gradlew build command.

I got an error like:

react-native-push-notification/android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationActions.java:75: Error: Missing permissions required by intent Intent.ACTION_CLOSE_SYSTEM_DIALOGS: android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS [MissingPermission]
              context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));

senolatac avatar Sep 23 '21 12:09 senolatac

Hello @senolatac I had the same issues with this error and I solved by changing this file in node_modules:

react-native-push-notification/android/build.gradle Specifically change the following params:

compileSdkVersion safeExtGet('compileSdkVersion', 31) buildToolsVersion safeExtGet('buildToolsVersion', '30.0.3') defaultConfig { minSdkVersion safeExtGet('minSdkVersion', 25) targetSdkVersion safeExtGet('targetSdkVersion', 30) versionCode 1 versionName "1.0" ndk { abiFilters "armeabi-v7a", "x86" } }

AliuDardan avatar Sep 23 '21 13:09 AliuDardan

Thank you @AliuDardan, but it didn't work for me.

senolatac avatar Sep 23 '21 14:09 senolatac

I'm having the same issue... Adding <uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS"/> to the AndroidManifest does not solve the problem... Also I do wish to target down to API level 21

ThomasStubbe avatar Nov 15 '21 09:11 ThomasStubbe

Any update on this? I am facing the same problem.

rameezh88 avatar Jul 18 '22 20:07 rameezh88

Hi guys any update on this issue?? I have same problem.

falihnaufal17 avatar Aug 26 '22 02:08 falihnaufal17

Same issue here, any ideas?

jeremyfrancis avatar Sep 11 '22 00:09 jeremyfrancis

Hello guys, What is the alternative way to avoid it in the meantime?

darylescode avatar Jan 18 '23 06:01 darylescode

Any update? i am developing a screen recorder application with a toolbar buttons like screen recorder home screenshot button when i click on any button i want to lose notification drawer first .Help me

asadaltaf583 avatar May 30 '23 05:05 asadaltaf583

If Anyone got the solution , please tag me

Vashu473 avatar Jun 09 '23 13:06 Vashu473

Waiting for solution

asadaltaf583 avatar Jun 12 '23 06:06 asadaltaf583

anyone ever find a way to fix this?

bardolf69 avatar Oct 02 '23 14:10 bardolf69

Yes i resolve it for my screen recorder application.

asadaltaf583 avatar Oct 03 '23 10:10 asadaltaf583

Hi @asadaltaf583, can you tell me how you have resolved it..?

mansimakwana25 avatar Oct 26 '23 05:10 mansimakwana25

Yes i resolve it for my screen recorder application.

why do you bother responding if you don't share your work around?

hekuranc avatar Oct 27 '23 20:10 hekuranc

I resolved it by starting a new activity with a PendingIntent.

asadaltaf583 avatar Oct 30 '23 04:10 asadaltaf583