-->

How to determine if SmartLock is enabled on device

2019-08-10 09:04发布

问题:

It's possible to disable "Smart Lock for Passwords" in the Google settings, so my app shouldn't show the login hints, if it's disabled on the system layer.

Is there anything equivalent to determine if Smart Lock is disabled, like the API to check if Google Play Services is available GoogleApiAvailability.getInstance() .isGooglePlayServicesAvailable(this))?

回答1:

It's a bug if empty picker is returned; it should not be happening. Have escalated to engineering team and fix is pending. Affects less than <1% of live devices. Will update this answer when the issue is resolved.



回答2:

I'm getting this dialog, if no hints are available, so I can only dismiss this dialog.