Comments (10)
Hello,
Are you using Java or C#?
If you're using Java, you have to call it this way:
function Start() {
Social.localUser.Authenticate(authUser);
}
function authUser(success : boolean) {
if(success) {
Debug.Log("Authentication succeeded!");
} else {
Debug.Log("Authentication failed!");
}
}
Kind regards,
Gjjansen
from play-games-plugin-for-unity.
Thank you answer
but not solved
May be setting problem. I try to setting change.
I still not solve..
from play-games-plugin-for-unity.
I have the same Problem.
Looks like "activity.Call("runOnUiThread", new AndroidJavaRunnable(action));" is not running.
In my Project, the main Activity is extending UnityPlayerActivity
from play-games-plugin-for-unity.
Just so we can rule out other stuff, does this happen when you build and run the Minimal sample?
from play-games-plugin-for-unity.
Minimal Sample works fine as it is. Will try to extend the Main Activity and see it the same problem occurs.
from play-games-plugin-for-unity.
I checked by adding an other plugin that extends the Main Activity in the Minimal Sample and it still worked fine.
The problem is the "activity.Call("runOnUiThread", new AndroidJavaRunnable(action));" is not running in my Project.
As a workaround I made a function in my plugin that creates and return GameHelper which is runOnUiThread from Java.
from play-games-plugin-for-unity.
Do you think you can post your solution? I'm hitting this too, probably because the Facebook Unity plugin overwrites the main activity
from play-games-plugin-for-unity.
What I did I modified GameHelper.
Line 170
public GameHelper(final Activity activity, final int clientsToUse) {
activity.runOnUiThread(new Runnable() {
@Override
public void run() {
mActivity = activity;
mAppContext = activity.getApplicationContext();
mRequestedClients = clientsToUse;
mHandler = new Handler();
}
});
}
And in C# I stopped calling the runOnUiThread.
But I'm facing a problem with the background of the activity. When I call the sign in process I'm getting a black background.
from play-games-plugin-for-unity.
I encountered this same error and eventually figured out the solution is in this thread (more details there) #88
from play-games-plugin-for-unity.
closing because it is so old.
from play-games-plugin-for-unity.
Related Issues (20)
- Unity Editor 2022.3.16f1 (LTS) project build Failed HOT 8
- play-games-pulugin-for-unity
- Bug reports
- Remove Plugin Completely HOT 1
- Known vulnerability detected
- Unity splash Auto Login
- [Bug] Non-secure network connections error
- How would this plugin behave when granular permissions of Google OAuth is enabled? HOT 6
- Can someone share sample for google play login? HOT 2
- Authentication failed. Prompt shows 400 Bad Request
- Sign in doesn't work. Returning an error code. HOT 11
- Only One Player data Saved
- Automated testing isn't possible with auto sign in as it hangs on the create profile screen
- Cloud saves sometimes deleted?
- `SavedGameMetadata` is closed after `CommitUpdate` HOT 1
- Is it possible to do a silent login with play games platform? HOT 1
- Errors on install from Package Manager (missing .meta files) HOT 4
- Cannot create a new save data file with OpenWithAutomaticConflictResolution HOT 1
- Issue getting Saved Games to work on device HOT 3
- Exception java.lang.NullPointerException: null reference at com.google.android.gms.games.ui.signinflow.SignInChimeraActivity.F HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from play-games-plugin-for-unity.