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

Merged
merged 1 commit into from
Sep 20, 2024
Merged

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.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks for the heads up.
To me It's okey to leave it as it is because we also need to pass the timeout info later on when internet discovering is ready and that also require code change and test via the dev-app.

@nazli-stripe nazli-stripe merged commit 4bcc79d into main Sep 20, 2024
3 checks passed
@nazli-stripe nazli-stripe deleted the bbpos/timeout branch September 20, 2024 18:28
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.

3 participants