cordova-plugin-googleplus icon indicating copy to clipboard operation
cordova-plugin-googleplus copied to clipboard

Consent screen is presented twice and you have to press twice `Allow`

Open scorobogaci opened this issue 5 years ago • 10 comments

Hello guys, using plugin, but it seems that consent popup is presented twice ? any idea on this > Also, seems that one time the consent screen is present,second time is doing it silently ? Is this the expected behavior ?

Thanks in advance!

Using : "@ionic-native/google-plus": "^5.21.5",

    async gPlusLogin() {
        const loading = await this.loadingController.create({
            message: 'Please wait...'
        });

        this.presentLoading(loading);

        return this.googlePlus.login({
            'scopes': '',
            'webClientId': 'xxxx',
            'offline': true,
            'prompt': 'consent'
        }).then(user => {
            loading.dismiss();
            return user;
        }, err => {
            loading.dismiss();
            throw new Error(err);
        })
            .catch((ex) => {
                throw new Error(ex);
            });
    }

scorobogaci avatar Feb 17 '20 09:02 scorobogaci

What is the scope of silentLogin if anuways second time log in gives you silent login ? and first time if using , the silent login will not return anything ? what is the scope of this method ?

scorobogaci avatar Feb 17 '20 10:02 scorobogaci

offline -> False

TehFox avatar Feb 18 '20 14:02 TehFox

'offline': false

IamSurendraThota avatar Feb 20 '20 15:02 IamSurendraThota

this thread talk about the same issue => https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/675

Merwan1010 avatar Feb 21 '20 12:02 Merwan1010

'offline': false

this does not help with consent screen being presented twice :(

scorobogaci avatar Feb 21 '20 13:02 scorobogaci

I have the same issue and I need offline: true

Why is it presented twice anyway?

mirko77 avatar Mar 03 '20 17:03 mirko77

Stackoverflow thread: https://stackoverflow.com/questions/59258202/how-to-switch-from-multiple-google-oauth-consent-screen-to-single-page

jayantpaliwal avatar Mar 06 '20 10:03 jayantpaliwal

Stackoverflow thread: https://stackoverflow.com/questions/59258202/how-to-switch-from-multiple-google-oauth-consent-screen-to-single-page

That's another thing though, in our app we get the same consent screen twice in a row. Both screens are exactly the same, asking for the same permissions.

mirko77 avatar Mar 06 '20 11:03 mirko77

@mirko77 agreed these are two separate issues - in our case even one asking for one permission we get the same consent screen twice in a row, the screens however are not identical with the first screen asking for permission - the second sayng "you already have **** access" but still requiring the allow button to be pressed again.

danpillay87 avatar Mar 11 '20 10:03 danpillay87

I'm personally experiencing the double consent screen on other apps or websites, so it might be an issue on Google side

Best, Mirko

On Wed, 11 Mar 2020, 11:10 Dan Pillay, [email protected] wrote:

@mirko77 https://github.com/mirko77 agreed these are two separate issues - in our case even one asking for one permission we get the same consent screen twice in a row, the screens however are not identical with the first screen asking for permission - the second sayng "you already have **** access" but still requiring the allow button to be pressed again.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/EddyVerbruggen/cordova-plugin-googleplus/issues/678?email_source=notifications&email_token=AAJNDGJW5QHNBBORZ6WQQDTRG5PTFA5CNFSM4KWNYK6KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEOO5T5A#issuecomment-597547508, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAJNDGKYNN47AIXLHWGCTXLRG5PTFANCNFSM4KWNYK6A .

mirko77 avatar Mar 11 '20 10:03 mirko77