Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RN: Silently Fail onRequestPermissionsResult for Invalid Activities #37047

Closed
wants to merge 1 commit into from

Conversation

yungsters
Copy link
Contributor

Summary:
We're seeing scenarios where onRequestPermissionsResult is being invoked but the current activity does not implement PermissionAwareActivity. This should not crash the app.

Changelog:
[Android][Fixed] - Fix crash when Android requests permission with activity that does not implement PermissionAwareActivity

Reviewed By: mdvacca

Differential Revision: D45203319

@facebook-github-bot facebook-github-bot added CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. p: Facebook Partner: Facebook Partner fb-exported labels Apr 22, 2023
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45203319

@analysis-bot
Copy link

Platform Engine Arch Size (bytes) Diff
android hermes arm64-v8a 8,622,804 +7
android hermes armeabi-v7a 7,936,158 -6
android hermes x86 9,109,453 -3
android hermes x86_64 8,964,474 +1
android jsc arm64-v8a 9,187,054 +179
android jsc armeabi-v7a 8,377,930 +189
android jsc x86 9,245,111 +190
android jsc x86_64 9,503,774 +190

Base commit: 555014a
Branch: main

…facebook#37047)

Summary:
Pull Request resolved: facebook#37047

We're seeing scenarios where `onRequestPermissionsResult` is being invoked but the current activity does not implement `PermissionAwareActivity`. This should not crash the app.

Changelog:
[Android][Fixed] - Fix crash when Android requests permission with activity that does not implement `PermissionAwareActivity`

Reviewed By: mdvacca

Differential Revision: D45203319

fbshipit-source-id: c8c3d9a52b063674bf681da8a8116755eb1add37
@facebook-github-bot
Copy link
Contributor

This pull request was exported from Phabricator. Differential Revision: D45203319

@facebook-github-bot facebook-github-bot added the Merged This PR has been merged. label Apr 22, 2023
@facebook-github-bot
Copy link
Contributor

This pull request has been merged in cff4bc8.

jeongshin pushed a commit to jeongshin/react-native that referenced this pull request May 7, 2023
…facebook#37047)

Summary:
Pull Request resolved: facebook#37047

We're seeing scenarios where `onRequestPermissionsResult` is being invoked but the current activity does not implement `PermissionAwareActivity`. This should not crash the app.

Changelog:
[Android][Fixed] - Fix crash when Android requests permission with activity that does not implement `PermissionAwareActivity`

Reviewed By: mdvacca

Differential Revision: D45203319

fbshipit-source-id: 4a6eb67ad67ae5c731c27301967b837b1286ccbb
OlimpiaZurek pushed a commit to OlimpiaZurek/react-native that referenced this pull request May 22, 2023
…facebook#37047)

Summary:
Pull Request resolved: facebook#37047

We're seeing scenarios where `onRequestPermissionsResult` is being invoked but the current activity does not implement `PermissionAwareActivity`. This should not crash the app.

Changelog:
[Android][Fixed] - Fix crash when Android requests permission with activity that does not implement `PermissionAwareActivity`

Reviewed By: mdvacca

Differential Revision: D45203319

fbshipit-source-id: 4a6eb67ad67ae5c731c27301967b837b1286ccbb
@yungsters yungsters deleted the export-D45203319 branch July 11, 2023 00:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. fb-exported Merged This PR has been merged. p: Facebook Partner: Facebook Partner
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants