android - Credential Manager doesn't popup on web after saving credential from related application - Stack Overflow

admin2025-04-16  1

I'm trying to share credential between my application and my website.

I followed this, to ask the user to save his login / password

val createPasswordRequest = CreatePasswordRequest(
      id = currentUser.email,
      password = currentUser.password,
)

try {
    val result = credentialManager.createCredential(
          context ?: return@launch,
          createPasswordRequest
    )
                             
    hintManager.saveGooglePasswordSavedInCloud()
} catch (e: CreateCredentialException) {
   e.printStackTrace()
}

And did the configuration, for the web

Everything is done, even uploaded a version test on the store. The Play Console say that credential sharing is turned on. App Links Assistant on Android Studio say everything is fine. But when I save login / password with the CredentialManager on my app, and then go on the website. It say that no credential are linked.

转载请注明原文地址:http://www.anycun.com/QandA/1744764987a87299.html