let params;
if(this.platform.is('android')){
params = {
'webClientId': '77852...client id stuff..',
'offline': true
}
}
else{
params={}
}
this.googlePlus.login(params)
.then(res => {
console.log(res);
}
)
.catch(err => console.error(err));
This code snippet is crucial for my project. Upon running this code, a specific sequence of events occurs:
Initially, the user is prompted to select a Google Account to proceed. Subsequently, a confirmation message appears, prompting the user to allow access. However, after clicking 'allow', the same confirmation dialog reappears. Only after confirming the choice again does the iDToken finally get generated.
I am puzzled as to why the identical confirmation prompt appears twice in succession. Any insights would be greatly appreciated.