Skip to content

[Android] Give permissions to media library Android 14 #14

@ChernenkoDmitriy

Description

@ChernenkoDmitriy

Before submitting a new issue

I tested using the latest version of the library, as the bug might be already fixed.

Bug Summary
When I try to add a video from the gallery for the first time, I give all the required permissions. However, after this initial attempt, I receive a prompt instructing me to go to settings and manually enable permissions, after give all permissions I can't add video. This bug occurs only on Android 14. On Android 10, it works as expected.

Steps to Reproduce

Open the app and attempt to add a video from the gallery.
Grant all permissions when prompted.
After granting permissions, observe the prompt instructing to go to settings to enable permissions again.
Expected Behavior
The app should retain the permissions on Android 14 after the initial grant and allow video selection without requiring the user to visit the settings manually.

Observed Behavior
The app prompts for permissions after the first attempt, only on Android 14, and redirects to settings unnecessarily.

Environment Details

Android Version: Android 14 (issue present), Android 10 (working as expected)
Relevant Libraries:
react-native-image-crop-picker (working on Android 14)
react-native-document-picker (working on Android 14)

Library version

0.4.0 and 0.3.0

Versions

"react": "18.3.1",
"react-native": "0.75.4",
"video-editor-react-native": "^0.4.0"
"react-native-permissions": "5.1.0"

2024-10-30 10 36 07

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions