Missing permissions for Google Play Services disable BraintreeFragment
See original GitHub issueHi,
we’ve gotten reports from some of our users that they get the com.braintreepayments.api.exceptions.GoogleApiClientException: Connection failed: 19
error when they try to use the Braintree drop-in in our app.
This is the [SERVICE_MISSING_PERMISSION
error code](https://developers.google.com/android/reference/com/google/android/gms/common/ConnectionResult#SERVICE_MISSING_PERMISSION), and apparently it shows up because the users disabled some of the play services permissions, and for that reason, google api client listener throws an exception which gets propagated immediately and effectively renders the whole BraintreeFragment unusable. It looks like the situation described in this article.
But, since this check is used only to ascertain the availability (or not) of Android Pay, I would rather like that that would be the outcome i.e. instead of propagating the GoogleApiClientException
(or any GoogeApiClient
errors, for that matter), it could just disable AndroidPay, and the credit card and PayPal would remain usable as payment methods. Currently, when opening the Drop In, I immediately get back onActivityResult()
with resultCode = 1
, which is not ideal.
Issue Analytics
- State:
- Created 7 years ago
- Comments:5 (3 by maintainers)
Top GitHub Comments
@mrsasha Thanks for the report and information! We have a fix that will go into the next release.
The fix for this was released in 3.0.7