Skip to content

Commit eb06b2c

Browse files
committed
handle issue with sdk 31 zo0r#2260
1 parent f65f7c7 commit eb06b2c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

android/src/main/java/com/dieam/reactnativepushnotification/modules/RNPushNotificationActions.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,11 @@ public void onReceive(final Context context, Intent intent) {
6262

6363
helper.invokeApp(bundle);
6464

65-
context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
65+
try {
66+
context.sendBroadcast(new Intent(Intent.ACTION_CLOSE_SYSTEM_DIALOGS));
67+
} catch(Exception e) {
68+
69+
}
6670
} else {
6771

6872
// We need to run this on the main thread, as the React code assumes that is true.

0 commit comments

Comments
 (0)