-
Notifications
You must be signed in to change notification settings - Fork 595
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
Not responding on denying the permission #490
Comments
Great find @Uzef1997 ! We are indeed moving towards people using react-native-permissions as it's a much better solution for all the edge cases and custom prompts that modern apps must deal with. A beta from the Since this may break features for people, I am hesitant to release it under v13. Following semver, while this is a fix for you, it would be a bug for some people. |
could not go for the beta version as of now coz I am moving forward for production and can't take chances for beta as everything is settled with my project but surely I will try it some other time thank you for responding. |
Closing this as we have v14.0.0-beta1 with a fix for it. |
Hello @scarlac latest version still has the same issue second thing: when I deny for permission same screen got stuck and I did not get any callbacks or promise about the permission denial please look into this scenarios of permission |
Which version did you test? Beta should have fixed this but we haven't officially released it yet. |
I have tried using 13.0.0 will update here after trying beta version 14.0.0-beta2 |
Describe the bug
react-native-camera-kit is asking for permission to record a video that permission is irrelevant if we just want to use camera for scannig barcode or QRcode you should consider to remove a code for asking the permission or you could just ask correct permission
After denying the permission I just got stuck on blank camera screen which should not be happen if user denies you should pass some callback for denying response or a promise for the same
To Reproduce
Steps to reproduce the behavior:
Use below code and click on deny when asking for permission
Expected behavior
It Should throw some callback or promise reject on denying the permission and should not ask for video recording permssion
Screenshots
If the issue is a visual glitch or UI issue please provide screen shots.
Desktop (please complete the following information):
System:
Binaries:
SDKs:
Smartphone (please complete the following information):
Additional context
As a solution we can remove the native code for handling permission and use the react-native-permission for handling the permission I am attatching the code below please find it
Remove below code from node_modules/react-native-camera-kit/ios/CKCamera.m
[self handleCameraPermission];
and
Remove below code From node_modules/react-native-camera-kit/android/CKCamera.kt
replace below function
For the code reference with react-native-permssion look below
import { check, PERMISSIONS, RESULTS, request, openSettings } from 'react-native-permissions';
Please look into it and do needful
Thank you
The text was updated successfully, but these errors were encountered: