I see that the CredentialsClient can save and delete a Credential but not update.
Do I need to delete and save the Credential again when trying to update the password in the App?
I see that the CredentialsClient can save and delete a Credential but not update.
Do I need to delete and save the Credential again when trying to update the password in the App?
No, just call save function and it will override the password.
for example here:
credential is an instance of com.google.android.gms.auth.api.credentials.Credential it contains an already saved credential but with new password.
and in the callback I am sending
onCredentialSaved(task)wich is this:if you debug you will notice that when updating a credential it falls into the fist
ifclause because the task return as success, if it is a new credential It won't fall into that, and you have to handle it with the rest of the code.I hope it helps you.