google-smartlockpasswords

Can't save IdentityProviders.GOOGLE credentials with SmartLock

烂漫一生 提交于 2019-12-13 16:16:34
问题 I'm logging my users into our app using Google+. The actual G+ signing in happens on the server though. I get back some user data such as email and name. I'm using this to store the users credentials as a google account. The issue arises when I try to save it. In the callback to save the creds in "Auth.CredentialsApi.save" it returns no resolution and nothing ends up happening. If I remove the Google IdentityProvider from the creds then it saves without a password. Does anyone know why a

Smart Lock shows accounts not from my app

∥☆過路亽.° 提交于 2019-12-11 11:09:58
问题 I am implementing google smart lock on my app, for now, we are only implementing on the app side, to log in the user automatically once he allows saving the credentials, on a reinstall for example. But when I removed the password from password.google.com OR when I run the app on a device where the google account doesn't have credentials stored for that app, the library shows a dialog suggesting others sites and apps emails. I need to disable this behavior, I just want to suggest credentials

How to determine if SmartLock is enabled on device

为君一笑 提交于 2019-12-11 04:42:44
问题 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

What does setEmailAddressIdentifierSupported() do for google's Android Smartlock HintRequest?

别来无恙 提交于 2019-12-11 01:35:20
问题 We are currently reenable our smartlock hint request feature for our android app. I noticed that that there's a method called setEmailAddressIdentifierSupported() And pass true or false actually returns us different set of accounts. I read the doc already but cant understand: Enables returning credential hints where the identifier is an email address, intended for use with a password chosen by the user. Shouldnt the hint request just return a list of accounts (like email or something) ? What

How do I control the SmartLocks blue banner?

穿精又带淫゛_ 提交于 2019-12-08 01:51:11
问题 When the user starts the app, I'm able to retrieve a previously stored credential. When this happens, the blue SmartLock banner shows up. On the app I work on, this is covering a FAB making it unusable until the blue banner goes away. Is there a way to control the length of time the banner is shown? Additionally, is there a way to let the FAB move up like it would with a snackbar showing? Lastly, if the user exits the app as the banner is showing, it will continue to show on the phone home

How to Implement Smart Lock for Passwords to Android Application

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-07 17:29:40
问题 Does anyone has knowledge about Smart Lock? How does it works? I want to develop an application implementing Smart Lock for passwords in Android application. I am following https://developers.google.com/identity/smartlock-passwords/android/. I have initialized GoogleApiClient mCredentialsApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Auth.CREDENTIALS_API) .build(); and generated instance of Credential as final

Smart Lock sign-in hint setPhoneNumberIdentifierSupported not working

∥☆過路亽.° 提交于 2019-12-06 16:01:36
I am trying to get user phone number with a HintRequest PendingIntent intent = Auth.CredentialsApi.getHintPickerIntent( googleApiClient, new HintRequest.Builder() .setPhoneNumberIdentifierSupported(true) .setEmailAddressIdentifierSupported(false) .build()); try { startIntentSenderForResult(intent.getIntentSender(), REQUEST_CODE_RESOLVE_PHONE, null, 0, 0, 0); } catch (IntentSender.SendIntentException e) { e.printStackTrace(); } But getting no results and Activity.RESULT_CANCELED. The nubmer is visible in Settings -> About -> Status -> SIM status and can be received through TelephonyManager, but

How do I control the SmartLocks blue banner?

瘦欲@ 提交于 2019-12-06 11:28:40
When the user starts the app, I'm able to retrieve a previously stored credential. When this happens, the blue SmartLock banner shows up. On the app I work on, this is covering a FAB making it unusable until the blue banner goes away. Is there a way to control the length of time the banner is shown? Additionally, is there a way to let the FAB move up like it would with a snackbar showing? Lastly, if the user exits the app as the banner is showing, it will continue to show on the phone home screen, blocking any use of the bottom app bar. Is there a way to prevent this? The auto sign-in banner

How to Implement Smart Lock for Passwords to Android Application

こ雲淡風輕ζ 提交于 2019-12-05 18:45:44
Does anyone has knowledge about Smart Lock? How does it works? I want to develop an application implementing Smart Lock for passwords in Android application. I am following https://developers.google.com/identity/smartlock-passwords/android/ . I have initialized GoogleApiClient mCredentialsApiClient = new GoogleApiClient.Builder(this) .addConnectionCallbacks(this) .addOnConnectionFailedListener(this) .addApi(Auth.CREDENTIALS_API) .build(); and generated instance of Credential as final Credential credential = new Credential.Builder(email) .setPassword(password) .build(); to save credentials

Google Smart Lock dialog for saving credentials does not appear when testing

回眸只為那壹抹淺笑 提交于 2019-12-05 11:25:12
I am trying to save a user's facebook credentials to Google Smart Lock, but I am having difficulty testing. I was able to display the prompt to save once, but after I went into my saved passwords (passwords.google.com) and deleted the saved credentials, the prompt is not appearing anymore! I went into google settings and made sure to delete the app from the "never save" section, but it is still not appearing. When I call Auth.CredentialsApi.save(), it is returning with a resolution of "null" and message "The current app is blacklisted" Steven Soneff Double-check if the error message returned