-
Notifications
You must be signed in to change notification settings - Fork 3
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
TrueLayerPaymentsSDKWrapper.configure
~crashes~ throws an error on Android when calles second time (but works fine on iOS)
#73
Comments
Hey Oles, we currently don't support env switching on Android and it requires relaunching the app to take effect. Would definitely be handy to add in the future when we can get to it. |
Hey Oles, we've looked into this crash and haven't been able to reproduce it. Can you share how you're using the configure method? For reference if you call configure twice on Android with different environments it should return an error saying that configuration has failed not crashing. This is how we recommend you use it.
|
TrueLayerPaymentsSDKWrapper.configure
crashes on Android when calles second timeTrueLayerPaymentsSDKWrapper.configure
~crashes~ throws an error on Android when calles second time (but works fine on iOS)
Sorry, I meant it throws an error (like on top), not crashes. You can reproduce by calling |
Im also getting this same issue. I believe it happens when the app attempts to reload in metro and configure gets recalled it will fail. with {
"nativeStackAndroid": [],
"userInfo": null,
"message": "Error not specified.",
"code": "EUNSPECIFIED"
} |
Hey,
When I initialize library with different environment using
TrueLayerPaymentsSDKWrapper.configure(Environment.Sandbox)
(or.Production
) - it works fine on iOS.But
crashesreturns cryptic error on Android:Would you be able to support dynamic env switching as it's handly for testing? And if not - would be nice to get consistent behaviour & proper error message explaining reason.
The text was updated successfully, but these errors were encountered: