Comments (5)
If you are encountering such error while building the app probably means that you might have some issue on your local environment side. I have never seen such error in this project tbh, because of that it is hard to find some better solution than outlining it in troubleshooting section in the README file.
from stripe-terminal-react-native.
but after a small research, Android documentation doesn't recommend the solution that you suggested:
However, the ability to request a large heap is intended only for a small set of apps that can justify the need to consume more RAM (such as a large photo editing app). Never request a large heap simply because you've run out of memory and you need a quick fix—you should use it only when you know exactly where all your memory is being allocated and why it must be retained. Yet, even when you're confident your app can justify the large heap, you should avoid requesting it to whatever extent possible. Using the extra memory will increasingly be to the detriment of the overall user experience because garbage collection will take longer and system performance may be slower when task switching or performing other common operations.
Instead of that they recommend to find the root of this issue which might be difficult for react-native users. However, I don't think we should suggest it for stripe terminal users.
From my point of view we have two options:
- we can try to find out if your issue is strictly related with the library, if so we need to fix it somehow (if it concerns RN environment - not Android library), otherwise this means there is something wrong with the example app or your local env.
- Simply wait for user's feedback and then react accordingly
from stripe-terminal-react-native.
I was seeing this too in my own project (not the example) and setting the jvm args as noted in the RN template to use more RAM worked for me.
from stripe-terminal-react-native.
@cscott-stripe we have it already https://github.com/stripe/stripe-terminal-react-native/blob/main/example/android/gradle.properties#L13
from stripe-terminal-react-native.
Spoke with @jdivock-stripe offline: this was only occurring when building via Android Studio. Android Studio memory settings take precedence over those set in gradle.properties
and should be set to something like:
Closing for now, we can re-open if it occurs again.
from stripe-terminal-react-native.
Related Issues (20)
- Android build failure: EXPO 49 + 0.0.1-beta.14 HOT 7
- Bug: DiscoverReaders Method Incorrectly Shows Battery Level as 0 for Discovered Readers HOT 3
- Issue with Implementing "Tap to Pay" using Stripe Terminal in React Native App HOT 10
- Mismatch between documentation and types file when calling createSetupIntent
- When creating a new react native project and adding the sdk, it fails to build. HOT 11
- Error: Operation not permitted. Verify the app has the necessary entitlements and that the application bundle is valid. HOT 4
- Can't reconnect local reader on iOS when going background on enter pin screen HOT 3
- Linking account on iOS HOT 3
- Setup intents are not available with Tap to Pay on Android HOT 1
- When calling collectPaymentMethod, the tuple returned is {undefined, undefined}. HOT 1
- When starting a payment using simulated reader, an expired API key is thrown HOT 6
- Android client and server-side payment intent creation fails HOT 4
- MEtadata not being sent to payment intent HOT 1
- Weird error when compatible reader connecting to location HOT 2
- Could not find any matches for com.facebook.react:react-android:+ HOT 1
- Expo 50 build not working on Android HOT 30
- is there a way to work with library without the hook api ? HOT 2
- Expo 50 iOS crashes when calling terminal.initialize HOT 7
- Unable to connect to simulated reader from a country where terminal is not available HOT 2
- Test isue 2024 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from stripe-terminal-react-native.