-
Notifications
You must be signed in to change notification settings - Fork 129
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
In order fro PayPal to work it may be necessary to update your android manifest #166
Comments
Hello, I have used BraintreeBrowserSwitchActivity version 3.0.0.Now I have changed version 4.0.0 ,so BraintreeBrowserSwitchActivity doesn't work at all.App is crashing |
Any problem to this issue? having similar issue |
com.braintreepayments.api.DropInActivity With this I see another issue, if you're on Android 14 (only 14 doesn't happen on 15 and only on some devices) if a user cancels the PayPal payment it throws exception and doesn't come back to the app.
|
Something changed in the way the class manage the activity result you should try to update the manifest in this way
See this issue on the original sdk
braintree/braintree-android-drop-in#419
That link to this page
https://developer.paypal.com/braintree/docs/guides/drop-in/setup-and-integration/android/v4/#paypal
This are the modification necessary for the DropInActivity in the manifest
<activity android:name="com.braintreepayments.api.DropInActivity" android:exported="true" tools:node="merge" > <intent-filter tools:node="removeAll" /> <intent-filter> <action android:name="android.intent.action.VIEW" /> <data android:scheme="@string/braintree" /> <category android:name="android.intent.category.DEFAULT" /> <category android:name="android.intent.category.BROWSABLE" /> </intent-filter> </activity>
I'll try to provide a PR to update the example and documentation as soon as I can, if you can do before even better
The text was updated successfully, but these errors were encountered: