-
Notifications
You must be signed in to change notification settings - Fork 980
Make package UPM compatible for GPGS 2.0 #3339
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
base: master
Are you sure you want to change the base?
Conversation
5e17fd7 to
4bd85c8
Compare
|
We need this :) |
|
Hello, If I use this branch instead of master could fix this issue I have: |
|
@RaphaelNSG I use my package in many version include 6000 and never see that problem |
|
Not sure about osx, have you tried with 6000 yet? |
|
Actually o notice that in you branch the GPGSUilt.cs its already updated to search in the cache package: #if UNITY_2018_4_OR_NEWER
// search for remote UPM installation
Path.Join("Library","PackageCache"),
"Packages",
#endifI tried with the |
|
You could update the changelog to mention all changes like changing the menu item paths. It would also make the review easier |
| GameInfo.WebClientId, | ||
| forceRefreshToken, | ||
| javaScopesList)) | ||
| using (var task = client.Call<AndroidJavaObject>("requestServerSideAccess", WebClientId, forceRefreshToken)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Thaina javaScopesList is missing
Raises error
System.Exception: No such proxy method: GooglePlayGames.Android.AndroidTaskUtils+TaskOnSuccessProxy1[UnityEngine.AndroidJavaObject].onSuccess(System.String)`
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you try fork this and change task.AddOnSuccessListener<AndroidJavaObject> to task.AddOnSuccessListener<string> instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Most likely it helps, but why?
Above there is a separate RequestServerSideAccess method without scopes support. And this method is specifically for a request with scopes specified. Returning javaScopesList to the list as an argument fixes the problem
- using (var task = client.Call<AndroidJavaObject>("requestServerSideAccess", WebClientId, forceRefreshToken))
+ using (var task = client.Call<AndroidJavaObject>("requestServerSideAccess", WebClientId, forceRefreshToken, javaScopesList))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mizunokazumi Sorry I misread the problem
Request serverside access was just added recently. I don't have time to update yet
https://github.com/playgameservices/play-games-plugin-for-unity/releases/tag/v2.1.0
Package/Sample~AssetImporter