-
Notifications
You must be signed in to change notification settings - Fork 50
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
Android Error when initializing Tap to Pay: "Localmobile reader not operating in secure process" #866
Comments
@maestrodrew Thank you for your report! The most helpful thing for us to be able to help debug this would be a simple sample application that reproduces the issue, or at a minimum a list of your dependencies and other relevant build files. |
@maggiewhite-stripe Here are my dependencies
I am testing on a Pixel 4a running Android 14. I am building my app with EAS locally. |
Small update. I ran the example app located in the README here https://github.com/stripe/stripe-terminal-react-native |
Another update: This issue may not be with EAS but rather Google Play Store optimization. If I build an APK with EAS and install via USB, everything works correctly. However, if I build an AAB and upload to Play Store internal testing track and install I see the error. |
@maggiewhite-stripe Good news and bad news. The good news is I have found the root cause of the issue. The issue is caused by Google Play Integrity Protection. If the setting in the below screenshot is enabled in your Google Play account, after uploading and installing a build the "Localmobile reader is not operating in a secure process" error will occur. When this setting is enabled, Google Play adds runtime checks to the uploaded AAB. It seems these added checks are causing the Stripe Terminal SDK to throw the error. When this setting is disabled, uploaded builds work as expected. The bad news is I'm not sure what the fix will be. A cursory Google search yields the following result: The search result links to this page but reading through those docs I didn't see anything the could be a potential fix. https://developer.android.com/google/play/integrity |
Describe the bug
When attempting to connect to Tap to Pay/LocalMobile reader on android, the SDK throws an error "Localmobile reader not operating in secure process"
To Reproduce
Call
connectLocalMobileReader
Expected behavior
App successfully connects to LocalMobile reader
Screenshots
If applicable, add screenshots to help explain your problem.
Stripe Terminal React Native SDK version
Smartphone (please complete the following information):
Additional context
I am using compile/target SDK 35 in my app.
Issue is similar to another issue reported in stripe-terminal-android
stripe/stripe-terminal-android#520
The text was updated successfully, but these errors were encountered: