-
Notifications
You must be signed in to change notification settings - Fork 51
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 |
@maggiewhite-stripe Can we get an update here? I provided some details above on the root cause of the error. |
I am using ""@stripe/stripe-terminal-react-native": "^0.0.1-beta.22"". We are facing same issue after publish to google play store, then install the app from play store we are getting this same error "Localmobile reader not operating in secure process". But while using as apk and install the apk in device , it is not throwing error |
@maestrodrew Thanks for looking into this - the Stripe eng team has confirmed that Google Play's Application Integrity Protection is the underlying issue here. We are staging a fix for an upcoming release, but unfortunately because the react native release SDK is still in beta, I can't give you a specific time frame in which that release will be available. In the meantime, a workaround is to downgrade your react native SDK version to v0.0.1-beta.20 and ensure that anti-tampering is disabled |
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: