#benk

1 messages · Page 1 of 1 (latest)

oblique cobalt
silver sparrow
#

Sure, I'll do that.

oblique cobalt
#

Thanks 🙂

silver sparrow
#

I removed NSCameraUsageDescription and rebuilt the app. Still seeing Scan card

oblique cobalt
#

OK, did you get any compilation errors? and are you able to use camera after clicking on the button?

silver sparrow
#

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

oblique cobalt
#

Setting a string to NSCameraUsageDescription is required by iOS if your app is using APIs to use camera

silver sparrow
#

I know

oblique cobalt
#

Yup, it's better to test against a real device

silver sparrow
#

I am not using it other than possibly for stripe to scan a card

oblique cobalt
#

the behaviour in simulator and real iOS device could be different

silver sparrow
#

And honestly. I think it's not important enough, so I will probably just disable it altogether

silver sparrow
#

It's not mission critical atm, but still, the "Scan card" message is there regardless of that permission key

oblique cobalt
#

OK. so do you want to offer this scan card option to customers? or you prefer to disable it?

silver sparrow
#

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?

oblique cobalt
#

Let me check, one sec

silver sparrow
#

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.

oblique cobalt
#

OK so in PaymentSheet's SetupParams, I don't see an option to turn off the 'scan card' option

silver sparrow
#

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

oblique cobalt
#

I think it's a great feature request, you should raise it in the Github repo.

silver sparrow
#

Off to bed now 🙂 Have a good night Jack. Nice chatting with you