I developed an application that uses the Google + API to authenticate a user using the following code snippet:
<div class="g-signin"
data-callback="loginFinishedCallback"
data-clientid="{My Client ID}"
data-scope="https://www.googleapis.com/auth/plus.login https://www.googleapis.com/auth/plus.profile.emails.read"
data-cookiepolicy="single_host_origin"
>
</div>
Basically, the Google login button is displayed, and when the user clicks on it, another window opens and they log in. In desktop browsers, everything works fine, but on mobile devices a second window opens and after a user logs in to Google, closing the login window, the user will stop looking at a blank page. In other words, the callback function is never called because the mobile browser does not close the new login window. Is there any way around this problem?
This is the javascript file that Google provides:
<script src="https://apis.google.com/js/client:plusone.js" type="text/javascript"></script>