Skip to content

fix permission reentrancy#145

Merged
jingjing2222 merged 2 commits into
jingjing2222:mainfrom
noma4i:fix/reentrant-permission-resolvers
Jul 17, 2026
Merged

fix permission reentrancy#145
jingjing2222 merged 2 commits into
jingjing2222:mainfrom
noma4i:fix/reentrant-permission-resolvers

Conversation

@noma4i

@noma4i noma4i commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

Fix a re-entrancy bug in iOS permission handling.

JavaScript callbacks can synchronously re-enter NitroGeolocation. The implementation now snapshots and
clears pending permission resolvers before invoking callbacks, and captures the monitoring decision before
callback execution.

Type of Change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation update
  • Performance improvement
  • Code refactoring

Checklist

  • My code follows the project style
  • I've tested my changes locally
  • Documentation updated (if needed)

E2E Test Results

Not run.

Platform tested:

  • iOS
  • Android
  • N/A (docs only)

Test artifacts:

None.


Additional Notes

This is the upstream version of the existing patch for react-native-nitro-geolocation@1.4.2. I have done localy + is in a published production app in the Appstore.

@jingjing2222

Copy link
Copy Markdown
Owner

/e2e

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@jingjing2222 iOS E2E: success

@github-actions

github-actions Bot commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

@jingjing2222 Android E2E: success

@jingjing2222

Copy link
Copy Markdown
Owner

Thanks for contributing! LGTM!

@jingjing2222
jingjing2222 merged commit 338316b into jingjing2222:main Jul 17, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants