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

App crash on Android when calling initialize() with device location turned off #484

Closed
guillaumetea opened this issue Jun 20, 2023 · 1 comment

Comments

@guillaumetea
Copy link

guillaumetea commented Jun 20, 2023

Describe the bug:
On android, when calling the initialize() function from the useStripeTerminal() hook with location services accepted but turned off, it throws an irrecuperable error:
Screenshot 2023-06-20 at 3 00 03 PM

The initialize() function does not return a response since it crash before. A try catch block does not catch this error and neither an ErrorBoundary.

Expected behavior:
An error returned from the function or an alert asking the user to turn on the location services

  • SDK version: 0.0.1-beta.12

  • Device: Google pixel 6

  • OS: Android 13

@nazli-stripe
Copy link
Collaborator

Fixed in #491

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