From 63a4539e4d36ac90137eea6cdde0154ca06878c0 Mon Sep 17 00:00:00 2001 From: Oleksandr Melnykov Date: Thu, 10 Nov 2022 15:17:24 -0800 Subject: [PATCH] Add POST_NOTIFICATION runtime permission to Catalyst and RNTester for Android Summary: Android 13 adds a new `POST_NOTIFICATION` runtime permission, which can only be requested if the `targetSdkVersion` of the app is set to 33. Since we upgrading Catalyst to SDK 33, let's add it as one of the permission examples. Changelog: [Android][Changed] - Add POST_NOTIFICATION runtime permission to RNTester Reviewed By: fkgozali Differential Revision: D38850138 fbshipit-source-id: 4cf7a5f60dd0891d7ada40aca37f0489d9d0d190 --- .../examples/PermissionsAndroid/PermissionsExample.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/packages/rn-tester/js/examples/PermissionsAndroid/PermissionsExample.js b/packages/rn-tester/js/examples/PermissionsAndroid/PermissionsExample.js index a0e40519725d1b..d3abbdf140ae9a 100644 --- a/packages/rn-tester/js/examples/PermissionsAndroid/PermissionsExample.js +++ b/packages/rn-tester/js/examples/PermissionsAndroid/PermissionsExample.js @@ -82,6 +82,17 @@ function PermissionsExample() { } style={styles.option} /> + + setPermission(PermissionsAndroid.PERMISSIONS.POST_NOTIFICATION) + } + selected={ + permission === PermissionsAndroid.PERMISSIONS.POST_NOTIFICATION + } + style={styles.option} + />