mauville-technologies / pgsgp Goto Github PK
View Code? Open in Web Editor NEWThis project forked from oneseedfruit/pgsgp
Play Games Services plugin for Godot Game Engine 3.3.x - Android
License: MIT License
This project forked from oneseedfruit/pgsgp
Play Games Services plugin for Godot Game Engine 3.3.x - Android
License: MIT License
When doing a play_games_services.signIn() (even with request_email disabled and request_profile disabled and save game disabled), the user is asked to give permission to the app to access his Google account info. This is an odd behavior.
Anyway to disable access to user Google account info? or any hint where I can turn it off in the code?
I would like to integrate token authentication on the server side for the PlayGamesServices so that only the server can make calls.
"Never trust the client" ;)
Seems to be a common practice:
https://developer.android.com/games/pgs/android/server-access
Here is a graphic (for better understanding):
https://developer.android.com/games/playgames/integrating-pgs-existing-id-solutions#restore_player_state
How can I have the token received - (on the backend) from the client - exchanged for the access token at Google Play Games Services. Is there a module for this or another solution? Thanks in advance! :)
Hello! You seem to have the most active fork of this google play services repository so I'm going to ask my question here hope that is okay. I am currently struggling to get google play services up and running for the demo application. The readme states that we should be using a OAuth2 client credential that is of type "Web application". Is that correct? It seems a bit odd considering this is an android application and plug-in that we are using.
Also, would this work for a godot 3.3 project?
Hey!
Im using this addon and everytime I try to login I get a stack trace saying its expecting an interface and got a class
12-29 12:00:31.036 19327 19327 D AndroidRuntime: Shutting down VM
12-29 12:00:31.037 19327 19327 E AndroidRuntime: FATAL EXCEPTION: main
12-29 12:00:31.037 19327 19327 E AndroidRuntime: Process: org.finepointcgi.gspp, PID: 19327
12-29 12:00:31.037 19327 19327 E AndroidRuntime: java.lang.IncompatibleClassChangeError: Found class com.google.android.gms.games.GamesClient, but interface was expected (declaration of 'com.google.android.gms.games.GamesClient' appears in /data/app/~~wB3kvUyirHWGIFARPNOpTQ==/org.finepointcgi.gspp-sTsf8cvrH5c50A2Gb7rwoA==/base.apk)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at io.cgisca.godot.gpgs.signin.SignInController.enablePopUps(SignInController.kt:104)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at io.cgisca.godot.gpgs.signin.SignInController.access$enablePopUps(SignInController.kt:12)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at io.cgisca.godot.gpgs.signin.SignInController$signIn$1.onComplete(SignInController.kt:52)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at com.google.android.gms.tasks.zzj.run(Unknown Source:4)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at android.os.Handler.handleCallback(Handler.java:938)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:99)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at android.os.Looper.loopOnce(Looper.java:201)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at android.os.Looper.loop(Looper.java:288)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:7842)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:548)
12-29 12:00:31.037 19327 19327 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1003)
I do end up getting my login in so the code itself seems to work however it always crashes on me or I get an error 10 depending on how the codes mood is.
Im using Godot 3.4 with Java 11
Just wanted to let people know that the repo works as is on godot 3.4. Updated my project to it recently with no issues.
I basically want to store some relevant user data in the save game (snpashot) area when they create their account. Ive tried save snapshot but it doesnt work. Not sure how I can evoke the _on_create_new_snapshot signal either. Any help?
Change link of releases to fork's release page. Currently in the readme it links you to https://github.com/cgisca/PGSGP/releases instead of: https://github.com/mauville-technologies/PGSGP/releases
if calling retrieve leader board from a new account returns,
"java.lang.NullPointerException: score must not be null"
encounter this on my main project, switched to a google play services test project and return it there too. I'd suggest this just to return 0?
The plugin works until login time, when error code: 10.
I checked that everything was ok on the Play Console and Google Cloud and everything is set up correctly. Any idea?
I checked SHA1 and it's ok
I configured release and debug keystore and in both the error code is: 10
I'm using Godot 3.3.3.stable
Would be nice if you could fix this:
java.lang.NullPointerException: score must not be null
at io.cgisca.godot.gpgs.leaderboards.LeaderboardsController$retrieveLeaderboardScore$1.onSuccess(LeaderboardsController.kt:58)
at io.cgisca.godot.gpgs.leaderboards.LeaderboardsController$retrieveLeaderboardScore$1.onSuccess(LeaderboardsController.kt:17)
at com.google.android.gms.tasks.zzn.run(com.google.android.gms:play-services-tasks@@17.2.0:4)
at android.os.Handler.handleCallback(Handler.java:883)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.