fix(mobile): check camera permission on ios and alert to open setting…#628
Closed
Nareshkumawat-star wants to merge 4 commits into
Closed
fix(mobile): check camera permission on ios and alert to open setting…#628Nareshkumawat-star wants to merge 4 commits into
Nareshkumawat-star wants to merge 4 commits into
Conversation
|
Someone is attempting to deploy a commit to the Prashantkumar Khatri's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
Thanks for opening this pull request. This PR has been automatically classified based on the files modified. Applied Labels
Primary Review Area
Reviewer@blankirigaya has been identified as the primary reviewer for this pull request. If you have any questions regarding the affected area or implementation details, feel free to reach out to the assigned reviewer. Thank you for your contribution! |
CI — Checks FailedBackend — FAIL
Mobile — PASS
Web — PASS
Last updated: |
added 3 commits
June 21, 2026 22:11
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR resolves the camera permission issue on iOS. Previously, the QR scanner would display a blank screen with no feedback if the user denied camera permission. We now correctly check the camera permission status on iOS (using
RNCameraKitModuledirectly sinceCamerais lazy-loaded) and present a user-friendly alert redirecting the user to iOS Settings if access is denied.Type of Change
What Changed
NativeModules,Linking,AppState, andAppStateStatusfromreact-native.checkInitialCameraPermissionto query iOS camera status viaRNCameraKitModule.checkDeviceCameraAuthorizationStatus().requestCameraPermissionto handle iOS permission states and trigger a redirect to the Settings app (Linking.openURL('app-settings:')) upon permission denial.AppStatelistener to re-evaluate permission status and start the scanner immediately when the user returns to the app from iOS Settings.useFocusEffectto verify permissions whenever the Scan tab is focused.How to Test
#issue : #610
Checklist
npm run lintpasses).npm run typecheck --workspaces --if-present).npm run test --workspaces --if-present).console.logor debug statements left in the code.