Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to login/register with mobile devices #38

Open
rodrigoprimo opened this issue Jan 28, 2014 · 8 comments
Open

Unable to login/register with mobile devices #38

rodrigoprimo opened this issue Jan 28, 2014 · 8 comments
Labels

Comments

@rodrigoprimo
Copy link
Owner

http://wordpress.org/support/topic/problems-with-apple-ios

@cklosowski
Copy link

I've not proven this yet, but I know that the error screen seen by the users is rendered by the wp_die() command. I'm wondering if some sort of issue is being caused by using that wp version instead of just a die() or exit();

I'll give that a shot on my site and have the users try again. WIll report back here tonight if it works.

@cklosowski
Copy link

For reference, this is the line I'm speaking of:
https://github.com/rodrigoprimo/social-connect/blob/master/social-connect.php#L99

@cklosowski
Copy link

It may just be other browsers, other than Safari. I have a few users who are using Safari Mobile and it's working...will investigate that as well. So maybe it's Chrome for iOS that's the issue.

@mennwebs
Copy link

mennwebs commented Jul 3, 2014

I've found the same problem. It happens when I sent site url to friends via Facebook message, and they opened in iOS with Facebook App's browser (internal browser / not Safari).

screen shot 2014-06-26 at 11 33 57 pm

@cklosowski
Copy link

Yep me as well. Also though, that wp_die() mentioned above should be switched for exit() or die(), wp_die actually causes a redirect and the and the $access_token is being lost.

I don't know a solution to the webview of Facebook app, this is caused by their webview not being smart enough to take care of the window.open() and redirect correctly. I'm telling my users to click on the 'open' button in the bottom right, and open in safari until a fix can be found.

@mennwebs
Copy link

mennwebs commented Jul 3, 2014

Thank you so much :)

@ahmednasir91
Copy link

@cklosowski its because due to limitations window.opener is undefined in some mobile browsers.

I fixed it detecting mobile devices and not opening a popup when there is a mobile device, I have implemented the solution for Facebook & Twitter only. I haven't implemented for other providers. If you want I can share my solution.

@rodrigoprimo
Copy link
Owner Author

Please open a PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants