You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I am attempting to implement the Braintree SDK in my native android application and following the docs as provided here.
In order to create a new instance of the DropInClient, I notice that in each of the constructors that are not deprecated, the only options are to either provide a Fragment or a FragmentActivity. However in my application I am using Jetpack Compose and following a single activity architecture. My single Activity does not extend from FragmentActivity and I am not using Fragments in my application.
I see there is a @Deprecated constructor that takes a Context however it does not allow you to provide a ClientTokenProvider which I will need to do.
Is there some solution or workaround that can be implemented to support launching the Drop In SDK from within a project that is using Jetpack Compose?
I have seen on an earlier version of the SDK (5.2.1) you could retrieve an Intent from the DropInRequest instance, but I don't see that in the current version.
To Reproduce
Implement the SDK on a project that does not implement FragmentActivity or Fragments
The text was updated successfully, but these errors were encountered:
Integration Details (please complete the following information):
com.braintreepayments.api:drop-in:6.9.0
Describe the bug
I am attempting to implement the Braintree SDK in my native android application and following the docs as provided here.
In order to create a new instance of the
DropInClient
, I notice that in each of the constructors that are not deprecated, the only options are to either provide aFragment
or aFragmentActivity
. However in my application I am using Jetpack Compose and following a single activity architecture. My single Activity does not extend fromFragmentActivity
and I am not usingFragment
s in my application.I see there is a
@Deprecated constructor
that takes aContext
however it does not allow you to provide aClientTokenProvider
which I will need to do.Is there some solution or workaround that can be implemented to support launching the Drop In SDK from within a project that is using Jetpack Compose?
I have seen on an earlier version of the SDK (
5.2.1
) you could retrieve anIntent
from theDropInRequest
instance, but I don't see that in the current version.To Reproduce
Implement the SDK on a project that does not implement
FragmentActivity
orFragment
sThe text was updated successfully, but these errors were encountered: