Our application utilizes gapi.js for Google authorization. While it functions well on the majority of desktop browsers and mobile Safari, we have encountered an issue with Mobile Chrome IOS (41.0.2272.58).
To initiate the process, we first load the gapi.js script:
require(['https://apis.google.com/js/client.js?onload=gapiIsLoaded'];
We then attempt to authorize using the following code:
gapi.auth.authorize(params, handler);
The parameters used are as follows:
var params = {
client_id: MY_CLIENT_ID,
scope: MY_SCOPES,
immediate: false // to open popup
};
When testing the behavior, browsers display a popup allowing for authorization and continuation of work. Additionally, IOS Safari performs correctly.
However, in Chrome IOS, the handler
callback is never triggered.