Skip to content

[0.79] Fix request permission is not always resolving in Android 16 #1157

@shivananda-sahu

Description

@shivananda-sahu

Target Branch

0.79

Link to commit or PR to be picked

facebook/react-native@39ede95

Description

In the latest Android 16 update, requesting permissions does not always change the app's state (the onPause and onResume functions aren't called). For instance, when you deny permission 3 times, the last promise won't resolve until you move the app to the background. The current logic inside the ReactActivityDelegate assumes that Android will call onResume after receiving permission state information from the system, which is no longer the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type Pick RequestPick requests to include commits inside a React Native release

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions