wgltony / react-native-braintree-dropin-ui

React Native integration of Braintree Drop-in for IOS & ANDROID (Apple Pay, Google Pay, Paypal, Venmo, Credit Card)
MIT License
78 stars 105 forks source link

How to setup browser switch #88

Closed ajitdas123 closed 2 years ago

ajitdas123 commented 2 years ago

Hello, How to set up Browser switch for android? The current Braintree document is unavailable. https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/android/v2/#browser-switch-setup

Without browser switch configuration it is throwing the below error

Error Error: BraintreeBrowserSwitchActivity missing, incorrectly configured in AndroidManifest.xml or another app defines the same browser switch url as this app.

I have tried adding the below code in my android manifest file as shown here, but it didn't fix the problem

      <activity android:name="com.braintreepayments.api.DropInActivity"
                  android:launchMode="singleTask"
                  android:exported="true">
            <intent-filter>
                <action android:name="android.intent.action.VIEW" />
                <data android:scheme="${applicationId}.braintree" />
                <category android:name="android.intent.category.DEFAULT" />
                <category android:name="android.intent.category.BROWSABLE" />
            </intent-filter>
        </activity>
    Can anyone please help how to setup browser switch properly? 
ajitdas123 commented 2 years ago

Its here https://developer.paypal.com/braintree/docs/guides/client-sdk/setup/android/v3#browser-switch-setup