#benk
1 messages · Page 1 of 1 (latest)
Hi benk, thanks for your feedback. Do you want to create an issue in the Github so that the Stripe react-native team can follow up? https://github.com/stripe/stripe-react-native/issues
Sure, I'll do that.
Thanks 🙂
You know, I read this thread https://github.com/stripe/stripe-react-native/issues/210#issuecomment-841324556
I removed NSCameraUsageDescription and rebuilt the app. Still seeing Scan card
OK, did you get any compilation errors? and are you able to use camera after clicking on the button?
no compilation error no. Not sure why I would have any. I described what happens when clicking the "button"
It's showing a message to go to settings and enable. But that will not work
I'm not 100% sure though. I probably need to test on a real device as well
Setting a string to NSCameraUsageDescription is required by iOS if your app is using APIs to use camera
I know
Yup, it's better to test against a real device
I am not using it other than possibly for stripe to scan a card
the behaviour in simulator and real iOS device could be different
And honestly. I think it's not important enough, so I will probably just disable it altogether
yeah
It's not mission critical atm, but still, the "Scan card" message is there regardless of that permission key
OK. so do you want to offer this scan card option to customers? or you prefer to disable it?
for now I guess I'll just disable it since permissions are not handled nicely with it
do you know a way to disable it?
Let me check, one sec
Reading this thread again, it looks like the issue is still not resolved and I better keep NSCameraUsageDescription although the scan card option doesn't work nicely
meaning, even if we find a way to disable it, if I fail app review because of it and anyway need to add it, then there's no point to hide it.
OK so in PaymentSheet's SetupParams, I don't see an option to turn off the 'scan card' option
yeah I don't either
It requires a bit of work
not much though.
What I suggest should be easy to implement in both ios and android in a few minutes
I think it's a great feature request, you should raise it in the Github repo.