Thus, the problem is that the pop-up window blocks the opening of the window, even if it is performed using a user action, for example, by clicking.
gapi.auth.authorize({ client_id: this.client_id, scope: this.scopes, access_type: 'online', immediate: immediate }, function(authResult) { console.log(authResult) });
If I just open a window for the user, click here:
$('.some').click(funciton(){ window.open(someurl) })
it works fine, but if I did this I would drop the gdrive api (gapi.auth.authorize), this is blocking anyway.
Necessarily, I cannot force users to disable popap blocking. I hope someone now how this solves :), thanks
source share