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

Add timeout in discover reader in dev-app #818

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tim-lin-bbpos
Copy link
Collaborator

Summary

Add timeout in discover reader in dev-app

Motivation

Add timeout in discover reader for testing purpose
https://jira.corp.stripe.com/browse/TERMINAL-40545

Testing

  • I tested this manually
  • I added automated tests

Documentation

Select one:

  • I have added relevant documentation for my changes.
  • This PR does not result in any developer-facing changes.

@@ -148,6 +150,10 @@ export default function HomeScreen() {
loadDiscSettings();
}, []);

const validTimeoutMethod = () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is currently valid for just bluetooth and usb discovery. Just a heads up that Android will be adding timeout support for discovering internet readers in the 4.0.0 release. I'm not too sure about when iOS will add it but might be a good idea to leave in a TODO for when both platforms provide support.

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

Successfully merging this pull request may close these issues.

2 participants