question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Missing permissions for Google Play Services disable BraintreeFragment

See original GitHub issue

Hi,

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:closed
  • Created 7 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lkorthcommented, Feb 21, 2017

@mrsasha Thanks for the report and information! We have a fix that will go into the next release.

0reactions
lkorthcommented, Mar 25, 2017

The fix for this was released in 3.0.7

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change app permissions on your Android phone - Google Help
Automatically remove permissions for unused apps.
Read more >
Google Play Services and Runtime Permissions
If Google Play services itself is missing permissions, you can invoke startResolutionForResult() to initiate the user flow to fix them. // ...
Read more >
Google Play Services - Everything you need to know
How to remove permissions from Google Play Services · Once again, follow the steps above to get to the Play Services app page...
Read more >
Google Play Services required permissions
If you'd disable this, several of your apps will probably no longer function the way they did before. Some apps won't care. But...
Read more >
Update your security provider to protect against SSL exploits
// Indicates that Google Play services is out of date, disabled, etc. // Prompt the user to install/update/enable Google Play services.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found