Skip to content
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

onFinishDiscoveringReaders not getting called #798

Open
manashathparia opened this issue Aug 28, 2024 · 1 comment
Open

onFinishDiscoveringReaders not getting called #798

manashathparia opened this issue Aug 28, 2024 · 1 comment

Comments

@manashathparia
Copy link

manashathparia commented Aug 28, 2024

Describe the bug

onFinishDiscoveringReaders is not getting called after discovering readers

To Reproduce

await discoverReaders({
discoveryMethod: 'bluetoothScan',
simulated: true,
});

Expected behavior

onFinishDiscoveringReaders should be called after discovery is done

Screenshots

Screenshot 2024-08-28 at 3 42 52 PM

Stripe Terminal React Native SDK version

  • ^0.0.1-beta.20

Smartphone (please complete the following information):

  • Device: iOS Simulator 17.5

Additional context
Add any other context about the problem here.

@tim-lin-bbpos
Copy link
Collaborator

Not sure if it helps, but the discovering process will never end by default if you didn't set a timeout or connect to a reader, etc.
Reference to iOS doc:
https://stripe.dev/stripe-terminal-ios/docs/Classes/SCPTerminal.html#/c:objc(cs)SCPTerminal(im)discoverReaders:delegate:completion:

The discovery process will stop on its own when the terminal successfully connects to a reader, if the command is canceled, or if a discovery error occurs.

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

No branches or pull requests

2 participants