Signin status is CANCELLED when sign in with google home and 'personal results' setting disabled
See original GitHub issueI am developing account linking and I have a problem with google home in a certain case. I have a DialogFlow intent that calls this code when i say “log in” :
export function signIn(app) {
app.ask(new SignIn());
}
I have another DialogFlow intent that has “actions_intent_SIGN_IN” event and calls this code :
export function signInConfirmation(app, params, signin) {
if (signin && signin.status === 'OK') {
chatAsk(app, 'A');
} else if (signin && signin.status === 'CANCELLED') {
chatAsk(app, 'B');
} else {
chatAsk(app, 'C');
}
}
Everything works fine with google home and google assistant : after logging in, the assistant answers “A”.
However, when I disable the “Personal Results” setting on google home, the signin object of the signInConfirmation method has a status equal to ‘CANCELLED’ and I dont understand why.
I tried to authenticate (with this setting disabled) on applications available on the Google store and they all seem to handle this case: the assistant says something like : "In order to display different content, I need your permission to access your personal informations … " and it sends a notification in the google home app to change the setting.
Thank you in advance for your help.
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:16 (3 by maintainers)
Top GitHub Comments
I believe that is what this issue is raising, @Fleker . There needs to be a more discrete differentiation between active, user-initiated cancellation via dialog vs. policy-based cancellation.
Please forward this as a feature request.
A feature request has been filed internally.