Forums » Plugin: Nextend Social Login and Register » Both Facebook and Google Logins go blank in Android app

  • Resolved daro2013

    (@daro2013)


    Dear Sir,

    Both Facebook and Google Logins of NextEnd plugin work very well in Android webview app which use Chrome User Agent. However, Facebook and Google have disabled chrome browser in webview app recently (October 2021), and NextEnd Facebook and Google Logins go blank after login/registration when that webview uses a custom user agent instead of chrome user agent – they wont redirect to intended URL I configured in Settings.

    Can you please advise how to fix them?

    I very appreciate your support.

    Cheers
    Thon

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter daro2013

    (@daro2013)

    Hi Sir,

    Is there any way that NextEnd Facebook and Google logins dont use popup windows to signup/login because webview app does not allow that. That is why they go blank after registration?

    Many thanks

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @daro2013

    I am sorry, but there is nothing on our end what we could do. These providers no longer support WebView, as WebView is not secure and recently many people used it for phishing.

    Google actually fights against WebViews for a very long time, so in their case the login didn’t work for a very log time. That was the reason we hid the Google buttons back then in 2018.
    See changelog 3.0.3:

    By overriding the user agent, you could probably hack this, but officially Google doesn’t work in WebViews for a long time.

    As of October 5, 2021 Facebook deprecated the support for Android WebView, so our Facebook button will no longer be able to work in it either. For this reason, starting from version 3.1.3 Nextend Social Login will hide the Facebook button from Android WebView.

    As for your question about the popups:
    In the Pro Addon, we have options to select the target window. But unfortunately that won’t help you in resolving this problem either. Since the problem is not with the popup, but with the WebView itself.

    Note:
    This forum is for the Free version only. If you have additional questions about premium features, like the “Target window” setting, then please rather open a support ticket here:

    Best regards,
    Laszlo.

    • This reply was modified 2 years, 5 months ago by Laszlo.
    Thread Starter daro2013

    (@daro2013)

    Hi Laszlo,

    Thank you for your response both email and here.

    But I see that your website states that they can be fixed using API. Here is that page:

    https://nextendweb.com/nextend-social-login-docs/can-use-nextend-social-login-webview/

    Is that still the case?

    I have found other paid social login plugins working with both Facebook and Google – I tested one of them and it is working in Android webview app.

    Well, I may have to give up NextEnd and go for that paid version with live updates.

    Thanks a lot

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @daro2013

    I have just tested the login with Facebook and Google in some other popular social login plugins and I can actually see the same error message in their cases, too when I try to login over Android WebView.

    When you tried the login with that premium plugin are you sure you tried to connect over Android WebView? Since these providers shouldn’t work in Android WebView.

    If they indeed work, then please note that on this forum premium plugins can not be duscissed, so please open a support ticket here:

    and tell us more information about this premium social login plugin where you saw Google and Facebook login working fine for you in Android WebView.
    Also in the support ticket please send us a link of a page of your site where I can see the social buttons coming from that plugin, so I could check it myself if they indeed work in Android WebView.

    Best regards,
    Laszlo.

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @daro2013
    Sorry in my previous reply I forgot to answer your question about the API.

    We have a REST API indeed:

    that you can use to check if there is a WordPress account registered on your site with the access_token that you POST to our endpoint. If we can find we return the User ID what you could use to login the person to the corresponding WordPress account with custom coding.

    So if you manage to get an access token somehow with custom coding then you could probably create a workaround. But the problem is that, from Android WebView I don’t think you could find a workaround to get an access token, since when you redirect the user to the authorization endpoint you will see exactly the same error as you do in Nextend Social Login.

    Thread Starter daro2013

    (@daro2013)

    Dear Sir,

    “I have just tested the login with Facebook and Google in some other popular social login plugins and I can actually see the same error message in their cases, too when I try to login over Android WebView.”

    That may be true for social login plugins on WordPress depository. But it is not true for some social login plugins at Codecanyon.net – I have tested two of 3 plutins there; both are working. The third plugin developer also confirm his plugin work very well in Webview app.

    I think your company should find a way of making NextEnd working; otherwise, many websites will stop using it.

    Thanks

    Plugin Support Laszlo

    (@laszloszalvak)

    Hi @daro2013

    In this case I would like to debug this problem further.
    Could you get in touch with us over the ticket system directly, please?
    You can do that here:

    The link above will refer to this topic, and I would like to ask some questions there.

    Thank you in advance!

    Plugin Support Laszlo

    (@laszloszalvak)

    Just a summary for those who are also interested in this topic.

    We discussed this with @daro2013 over the ticket system and we checked the mentioned premium social login plugins in Android WebView, and those actually returned the same WebView specific error that Nextend Social Login does for Facebook and Google.

    I also checked multiple other topics on this matter, and it seems as soon as Facebook recognizes that it is a third party Android WebView, then they will block the authentication request and return the error.

    So in version 3.1.3, Nextend Social Login will hide the Facebook social buttons from browsers recognized as Android WebView, as Facebook won’t allow the login anyways. In iOS WebView and in the WebView of the Facebook and Instagram App on Android, the Facebook social buttons will still be visible as Facebook allows the Android WebView of these two applications.

    Because of these changes, now I mark this topic as Resolved.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Both Facebook and Google Logins go blank in Android app’ is closed to new replies.