-
Notifications
You must be signed in to change notification settings - Fork 237
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
Cannot Initialize DropInClient #1090
Comments
Hi @yosrri thanks for using the Braintree SDK for Android. Have you tried using a ClientTokenProvider instead? There's a limitation with Also, I'm going to close this issue since it's unrelated to this repo, which hosts our Core SDK. If using a ClientTokenProvider doesn't work, feel free to re-open this issue in our braintree/braintree-android-drop-in repo. |
@sshropshire thank you, does the same limitation exists in the paypal with vault sdk? |
@yosrri for now yes. We do eliminate the restriction in the v5 beta of our Core SDK though (see MIGRATION_GUIDE). In |
Braintree SDK Version
6.13.0
Environment
Sandbox
Android Version & Device
Samsung A52, Android 13
Braintree dependencies
maven {
url "https://cardinalcommerceprod.jfrog.io/artifactory/android"
credentials {
username 'braintree_team_sdk'
password 'AKCp8jQcoDy2hxSWhDAUQKXLDPDx6NYRkqrgFLRc3qDrayg6rrCbJpsKKyMwaykVL8FWusJpp'
}
Describe the bug
Trying to use the drop in ui, i lateinit the dropInClient and implemented the DropInListener, requested a token from our backend, upon arrival of the token from the backend
private fun configureDropInClient(token: String) { dropInClient = DropInClient(this, token) dropInClient.setListener(this)
the debugger is stopped at line
dropInClient = DropInClient(this, token)
reporting an exception saying: "lifecycleowner signuppaymentfragment{112c298} (63f0e051-95cc-416e-b698-8ee3cefb3148 id=0x7f0a06cb) is attempting to register while current state is resumed. lifecycleowners must call register before they are started."
i call this after it but it never reached it, except one time which was weird i was debugging
To reproduce
you just initialize the drop in token like i explained
Expected behavior
drop in client get initialized and paypal gatway browser opens
Screenshots
No response
The text was updated successfully, but these errors were encountered: