Third party Can not login with Google on iOS

agison

Well-known member
Hi!

I can not login into Xenforo (both on my forums & Xenforo.com) with my Google account. When I click "Login with Google button", the page just get stuck there, there is no redirect to Google Login page.

This happen only on iOS (I test with my iPhone 6 Plus, iOS 8.3).
Thank you.
 
Ran into the same issue... Maybe it's combo of something in XF's implementation and Google's JavaScript somehow? I would think Google would have fixed an issue that only affects their own browser at this point.

But additionally, Google+ account creation in Chrome on iOS works on non-XenForo sites. For example: http://weheartit.com/

Without digging too much into the guts of the differences, one thing I notice with their implementation is they aren't doing the Google+ account association in a new browser window, while XenForo is. Maybe it's an issue with it trying to get back from that pop-up window?
 
I forgot I had built a Google+ implementation for XenForo from before XenForo supported it. I tested it with that one I built and it works fine with XenForo on iOS/Chrome, but I didn't use the JavaScript library to do it (the gapi.signin object). I used the server-side implementation where the user is redirected to the URL and then straight back (no popup window involved like the Google's JS library does). Might not be a bad idea to use that for authentication instead of the JS library (it's simpler to implement too).
 
I ended up making an addon that just uses the direct authentication URL, rather than use the JavaScript lib (since that's where the issue is)... all the backend stuff (like the code redemption) was left alone. We'll see if there are any issues in the next couple days, and I might release it if it doesn't make it into XenForo core.

Nice to be able to have Chrome users sign up rather than how it works now (no error, no nothing... just nothing happens).
 
Top Bottom