I am integrating cordova-braintree-plugin to Ionic 3 app.
The issue I am having is that on Android the drop-in UI always returns User Cancelled except first time it is used. iOS side works perfectly. For android consider the following:
- Launch app
- Start payment via drop-in UI
- Success and complete the remaining steps in app
- Start another payment
- The drop-in UI immediately returns USER CANCELLED. At this point the UI is still usable and functions properly by itself but since it has already returned nothing more happens.
After step 5 I have to kill the app and start from 1 to succeed again.
PS - I have tried both the “official” https://github.com/Taracque/cordova-plugin-braintree and more recent fork https://github.com/fbognini/cordova-plugin-braintree