How do I Setup Google Log in in Construct 3?

Not favoritedFavorited Favorited 0 favourites
  • 9 posts
From the Asset Store
Casino? money? who knows? but the target is the same!
  • Hi,

    I have been trying to setup Google Play with the GooglePlay plug in on web and on Android. I have done it on web using JS no issues there, but when I try to use C3 plug in the pop up shows to pick the user I pick the one I added to the testers list. And Nothing happens. I have this setup so that I can see if the user can Sign In. As soon as I press the Login Button the Sign In failed alert shows. Then I finish to choose the account the google pop up closes and nothing happens. When I check on Firebase the user is not authenticated. This is pretty annoying because I did it pretty easy with code and it's taking me a lot of time to do it with the plug-in.

    Appreciate any help thank you.

  • I think it has something to do with "Cross-Origin-Opener-Policy policy would block the window.closed call." that pops up after the failed alert. Does anyone know why this happens ?

  • Hi,

    ... This is pretty annoying because I did it pretty easy with code and it's taking me a lot of time to do it with the plug-in.

    Appreciate any help thank you.

    Hello.

    Have you taken into account that different types of keys need to be added to the plugin for the web version and the Android version?

    I have no problems with this plugin.

  • Here is my minimum setup for login.

  • Hi Thank you so much for you answer.

    Yes I made a test project only for this and if I use the Android apk on my phone works with no problems. But on the web it doens't.

    Maybe there is something wrong with my web client I added preview.construct.net and mywebsite.com to the Authorised JavaScript origins and I have muffin-run.firebaseapp.com/__/auth/handler and preview.construct.net/local.html on the Authorised redirect URIs is this ok ? Am I missing something.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • Just so that you also understand on Android is working fine. But I can't run it while I'm testing on the Web.

    I have been trying with no success I have it like this:

    If I use a random Client ID the Google popup says not allowed. If I use the correct one it askes for the account and all of that but in the end nothing happens. But both as soon as I click on the sign in button the Alert with Sign In failed pops up. Btw I'm also using Firebase I don't know if that matters but Firebase created these credentials for me when I created the app on my project on Firebase.

  • I used the web client only for testing in preview mode, adding the following domains in the key settings.

  • After some research I'm almost 100% sure its because of the Cross-Origin-Opener-Policy blocking the window pop up.

    Does anyone know how to fix this ? This is getting me very frustrated. This kind of setups are always a pain to deal with C3. I'm trying to make this work for quite some time I made it work for Android export from C3 and Unity, from a localhost simple webapp, also using JS on C3 this works but if I can't run it on the C3 editor this makes it impossible to work.

    I leave a print of my console after starting the game and clicking to sign in. Be aware this project has nothing else beside a sprite to click to Sign In on Google Play. The last 2 warnings and 2 errors only show after I click the button.

    Any C3 developer can give me a light on this ?

  • Hi all,

    I didn't found any solution for this on C3 which made me sad. I have been using C3 for almost 6 years on small projects it works great but when you want to do something more it doesn't keep up.

    After 4 days on multiple issues related with Android export I gave up and decided to move to other engines.

    In one morning on Godot i did what I was trying to achieve on C3 for days. It's sad because I still have my license active but I guess i have to move my project to another engine. That was the solution I found.

    Thank you guys

Jump to:
Active Users
There are 0 visitors browsing this topic (0 users and 0 guests)