Skip to content

Commit

Permalink
fix(android)!: Remove USE_FULL_SCREEN_INTENT permission from package …
Browse files Browse the repository at this point in the history
…manifest for Android 14 compat (#1027)

BREAKING CHANGE: Android 14 no longer allows this by default so no longer include by default. Manually add it if you need it.
  • Loading branch information
exzos28 authored and mikehardy committed Sep 11, 2024
1 parent 134e00a commit 5031a09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion android/src/main/AndroidManifest.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
<uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
<uses-permission android:name="android.permission.SCHEDULE_EXACT_ALARM" />
<uses-permission android:name="android.permission.BROADCAST_CLOSE_SYSTEM_DIALOGS" android:maxSdkVersion="30" />
<!-- For Xiaomi devices to enable heads-up notifications as default (https://github.com/invertase/notifee/issues/296) -->
Expand Down
5 changes: 5 additions & 0 deletions packages/react-native/src/types/Notification.ts
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ export interface NotificationPressAction {
* On Android; when provided to a notification action, the action will only open you application if
* a `launchActivity` and/or a `mainComponent` is provided.
*
* Requires the following permission to be added to your `AndroidManifest.xml`:
* ```xml
* <uses-permission android:name="android.permission.USE_FULL_SCREEN_INTENT" />
* ```
*
* Please see the [FullScreen Action](/react-native/docs/android/behaviour#full-screen) document to learn more.
*/
export interface NotificationFullScreenAction {
Expand Down

0 comments on commit 5031a09

Please sign in to comment.