From f0c8d2c5366edf08d2ef7c7beb9ae8f8bfb58806 Mon Sep 17 00:00:00 2001
From: melquiadess <31paths@gmail.com>
Date: Mon, 8 Apr 2024 09:09:25 +0100
Subject: [PATCH] Add POST_NOTIFICATIONS permission to the list of permissions
available in the Export dialog
(cherry picked from commit 739190ca2b7f1b67a78eff33154a4bfd1964f5c4)
---
platform/android/doc_classes/EditorExportPlatformAndroid.xml | 3 +++
platform/android/export/export_plugin.cpp | 1 +
2 files changed, 4 insertions(+)
diff --git a/platform/android/doc_classes/EditorExportPlatformAndroid.xml b/platform/android/doc_classes/EditorExportPlatformAndroid.xml
index 72414948775..22b894214cc 100644
--- a/platform/android/doc_classes/EditorExportPlatformAndroid.xml
+++ b/platform/android/doc_classes/EditorExportPlatformAndroid.xml
@@ -361,6 +361,9 @@
Allow an application to make its activities persistent.
Deprecated in API level 15.
+
+ Allow an application to post notifications. Added in API level 33. See [url=https://developer.android.com/develop/ui/views/notifications/notification-permission]Notification runtime permission[/url].
+
Allows an application to see the number being dialed during an outgoing call with the option to redirect the call to a different number or abort the call altogether. See [url=https://developer.android.com/reference/android/Manifest.permission#PROCESS_OUTGOING_CALLS]PROCESS_OUTGOING_CALLS[/url].
Deprecated in API level 29.
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp
index e2d0f71c122..6c1881e284d 100644
--- a/platform/android/export/export_plugin.cpp
+++ b/platform/android/export/export_plugin.cpp
@@ -138,6 +138,7 @@ static const char *android_perms[] = {
"MOUNT_UNMOUNT_FILESYSTEMS",
"NFC",
"PERSISTENT_ACTIVITY",
+ "POST_NOTIFICATIONS",
"PROCESS_OUTGOING_CALLS",
"READ_CALENDAR",
"READ_CALL_LOG",