Skip to content
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

When the game is downloaded from the store it does not connect. #2

Closed
AndersonFirmino opened this issue Dec 10, 2017 · 108 comments
Closed
Labels

Comments

@AndersonFirmino
Copy link

I was successful using this module. When I install the APK locally. Turning it over USB to my Android the Google Play system logs in normally. When I update my game in the Google Play store. It just does not connect.

Would you help me? 😅

@RameshRavone
Copy link
Contributor

use the following adb command to check log,

adb -d logcat godot:V GoogleService:V DEBUG:V AndroidRuntime:V ValidateServiceOp:V *:S

if you are using Firebase add this as well, GodotSQL:V FireBase:V

@AndersonFirmino
Copy link
Author

Thanks for helping me!

I'll try that right now.

I've been working on it for almost two whole nights. LOL

@AndersonFirmino
Copy link
Author

AndersonFirmino commented Dec 10, 2017

I did not know I had a way to see the app's logs installed.

12-10 03:15:28.620 21401 21401 D GoogleService: Play Service Available.
12-10 03:15:28.640 21401 21401 D GoogleService: Google initialized.
12-10 03:15:28.640 21401 21401 I GoogleService: connecting on start.
12-10 03:15:28.640 21401 21401 D GoogleService: Connecting to google play service
12-10 03:15:28.660 21401 21401 D godot   : AdMob: Hide Banner
12-10 03:15:29.080 21401 21401 D GoogleService: google Connection failed.
12-10 03:15:29.100 21401 21401 D GoogleService: google Connection Resolving.
12-10 03:15:31.060 21401 21401 W godot   : AdMob: onAdLoaded
12-10 03:15:32.480 21401 21401 W godot   : AdMob: onRewardedVideoAdLoaded
12-10 03:15:33.840 21401 21420 I godot   : ^_^_^_^_^ resize -286525136, 1080, 1920
12-10 03:15:34.740 21401 21401 D GoogleService: google Connection failed.

This log could at least say why it was not possible to login. 😓

If I touch any button I've implemented. Leaderboard or Achievement button this log appears

12-10 03:22:38.680 21772 21772 D GoogleService: Connecting to google play service
12-10 03:22:38.680 21772 21772 I GoogleService: PlayGameServices: Google calling connect
12-10 03:22:39.080 21772 21772 D GoogleService: google Connection failed.

@RameshRavone
Copy link
Contributor

OK, can you replace the line in modules/GodotGoogleService/android/PlayService.java to

Log.d(TAG, "google Connection failed: " + m_result.getErrorMessage());

this should print more details.

and also try to clear Google play service cache some time the old data can cause these problems.

@AndersonFirmino
Copy link
Author

AndersonFirmino commented Dec 10, 2017

I'll do it right now. And I'll come back with the details. 🍪

@AndersonFirmino
Copy link
Author

AndersonFirmino commented Dec 10, 2017

I implemented the code you mentioned above.
It returns null as error message

12-10 04:18:47.680 25921 25921 D GoogleService: Play Service Available.
12-10 04:18:47.690 25921 25921 D GoogleService: Google initialized.
12-10 04:18:47.690 25921 25921 I GoogleService: connecting on start.
12-10 04:18:47.700 25921 25921 D GoogleService: Connecting to google play service
12-10 04:18:47.710 25921 25921 D godot   : AdMob: Hide Banner
12-10 04:18:47.780 25921 25921 D GoogleService: google Connection failed: null

I cleared the cache too.

After I compile the apk and install the direct apk it connects. This only happens after I download my game from the Google Play Store.

@RameshRavone
Copy link
Contributor

What about after google Connection Resolving., is it still null

@AndersonFirmino
Copy link
Author

Yes, it remains null. I saw you commit. I got your last commit and set here using the same library settings as you. version 10.0.1.

In my tests I got to use version 11.6.0

One thing that is not in the tutorial. It is that you have to generate google-services.json.
My gradle complained about the missing file and then I ran it on Google's website.

I believe that I have taken all the necessary steps.

@RameshRavone
Copy link
Contributor

Sorry about that, edit file: modules/GodotGoogleService/res/values/ids.xml and set your app id there. app id needs to be set in AndroidManifest as well, thought I mentioned that in README. my bad

@AndersonFirmino
Copy link
Author

I put my id in ids.xml
Is there any other file that I should put the id?

It's all right. I followed my programmer intuition. LOL 😅

@AndersonFirmino
Copy link
Author

Using the last commit. Your module now does not work anymore.
It starts connecting and fails.

12-10 05:03:00.740 29133 29133 D GoogleService: Play Service Available.
12-10 05:03:00.750 29133 29133 D GoogleService: Google initialized.
12-10 05:03:00.750 29133 29133 I GoogleService: connecting on start.
12-10 05:03:00.750 29133 29133 D GoogleService: Connecting to google play service
12-10 05:03:00.780 29133 29133 D godot   : AdMob: Hide Banner
12-10 05:03:01.240 29133 29133 D GoogleService: google Connection failed: null
12-10 05:03:01.250 29133 29133 D GoogleService: google Connection Resolving.
12-10 05:03:03.020 29133 29133 W godot   : AdMob: onAdLoaded
12-10 05:03:05.020 29133 29133 W godot   : AdMob: onRewardedVideoAdLoaded
12-10 05:03:06.170 29133 29152 I godot   : ^_^_^_^_^ resize -286525136, 1080, 1920
12-10 05:03:06.820 29133 29133 D GoogleService: google Connection failed: null

@RameshRavone
Copy link
Contributor

Did everything I could, and returned empty, guess this is time I update my API and SDK.

I'll push the changes as soon as possible.

@AndersonFirmino
Copy link
Author

So. I can only wait. I tested all the existing ones and none worked its was the only one that worked. 😅

@AndersonFirmino
Copy link
Author

The last version of my game is using the last commit of your module. I recently opened it and Google Play Games has connected. I'll go up to the store and see if it works. Hopefully yes.

@AndersonFirmino
Copy link
Author

AndersonFirmino commented Dec 10, 2017

I uploaded the game in the store. And gave the same problem. It works when I install the APK locally. But when you download the Google Play store it does not work and the log returns null. 😞

@RameshRavone
Copy link
Contributor

RameshRavone commented Dec 10, 2017

This thing could be happening because of the SHA-1 certificate, you can give it a try at https://console.developers.google.com under certificate section

@AndersonFirmino
Copy link
Author

I have set the sha1 certificate on this page.
https://console.developers.google.com/apis/credentials/oauthclient/

In the details page of the game I had a link that went to the API page and I saw that it had a SHA1 certificate. I searched within the release keystore for this SHA1 key and replaced the value it was before.

@AndersonFirmino
Copy link
Author

I tried to use these modules but neither worked. Not even locally.
https://github.com/kloder-games/godot-gpgs
https://github.com/ranmaru90/Play-Game-Services-Android-Module-for-Godot

Your module at least locally works.

@AndersonFirmino
Copy link
Author

I'm still trying to figure out what's going on.
You quoted that part in the conversation. I do not remember seeing it in any tutorial. And in the Google Play Services documentation they talk to do this.

How would I do this using your module?

app id needs to be set in AndroidManifest as well

@RameshRavone
Copy link
Contributor

That is done using, google_play_app_id,

@RameshRavone
Copy link
Contributor

Well, I'm pretty much ported the SDK to 11.6.0. and everything is working as it should.

it maybe the old api's were deprecated.

@AndersonFirmino
Copy link
Author

Wonderful, I'll test right now. I believe Google is rigid with their codes. Probably with this update it has to work.

@AndersonFirmino
Copy link
Author

Have you already committed your upgrade?

@RameshRavone
Copy link
Contributor

RameshRavone commented Dec 11, 2017

It seems the culprit is PLUS_LOGIN scope just found out. https://developers.google.com/android/reference/com/google/android/gms/common/Scopes

SO we didn't add the Google+ login to the GoogleApiClient, API was faulty from the start.

@AndersonFirmino
Copy link
Author

Very good, it gives me a happiness to read this. I fought so much with these modules. LOL
I'm ready to try a few more times. 🍰

@RameshRavone
Copy link
Contributor

Done, just pushed the changes, check weather this work when you upload the game to Google Play Store and a lot of changes will be made like for accessing the user profile (details) and so forth so stay tuned.

@AndersonFirmino
Copy link
Author

Of all the developers who asked for help on this journey. I am immensely grateful for your help. Seriously this is very important to me. 😬

I'll go through the compilation and upload processes in the Google store. As soon as I have the new version working or not, I update it here. I hope the next message is to close the issue. LOL

Again thank you very much for all the effort and help.

🍪

@AndersonFirmino
Copy link
Author

I ran the gradle build command and this is giving problem with versions 11.6.0
I have a hunch this repository does not have the libraries it needs.
https://oss.sonatype.org/content/repositories/snapshots

When you updated did you test with this url?

Here says to switch to https://maven.google.com

https://stackoverflow.com/questions/46417939/failed-to-resolve-com-google-android-gms-play-services-auth11-4-0

If I change here, do you think it could be a problem?

@RameshRavone
Copy link
Contributor

Are you using FireBase module, if so update that as well

@AndersonFirmino
Copy link
Author

AndersonFirmino commented Dec 11, 2017

I am not using Firebase so just remove the dependency of the firebase that will compile?

@RameshRavone
Copy link
Contributor

RameshRavone commented Dec 15, 2017

If this happens only with the version from Google play store, the problem is clearly in the SHA-1 / API Key / Server

Look at the complete logcat for some error. and do this #2045 (comment), we cant fix anything programing client app if the problem is with the API key,

@RameshRavone
Copy link
Contributor

And as for the users downloading the app, upload the app in beta. and test it from there.

@AndersonFirmino
Copy link
Author

AndersonFirmino commented Dec 15, 2017

I guess you're right.

I am with two android keys look. And only one is really valid.

screenshot

@AndersonFirmino
Copy link
Author

One has the wrong value. And the other is right. Do you think I can exclude the wrong one? It's a little scared to move here and screw it up.

@AndersonFirmino
Copy link
Author

Testing. Before deleting it, speak how many times the credential was used. That badge is there just for being. The other was used many times.

@AndersonFirmino
Copy link
Author

I followed all the steps of the tutorial in the link that you passed. I am uploading the new version with the corrected credentials.

@AndersonFirmino
Copy link
Author

I followed the step by step. And the result was the same. Still not showing the leaderboards.
If it was even a credential error it would not even show the achievements.

@RameshRavone
Copy link
Contributor

RameshRavone commented Dec 15, 2017 via email

@AndersonFirmino
Copy link
Author

12-15 06:24:09.961 17749 17749 D GoogleService: Google service is already connected
12-15 06:24:09.974 17749 17749 I GoogleService: PlayGameServices: leaderboard_submit, 10
12-15 06:24:18.598 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.598 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.602 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.602 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.616 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.616 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.618 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.618 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.620 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.620 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.622 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.622 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.623 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.623 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.625 17749 17768 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-15 06:24:18.625 17749 17768 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 06:24:18.643 17749 17768 I godot   : Dados carregados.
12-15 06:24:18.656 17749 17749 D godot   : AdMob: Show Banner
12-15 06:24:19.836 17749 17749 D GoogleService: Google service is already connected
12-15 06:24:19.872 17749 17749 D GoogleService: Showing::Loaderboard::CgkI_emEl9gdEAIQAA
12-15 06:24:21.517 17749 17768 I godot   : ^_^_^_^_^ resize -280770256, 1080, 1920
12-15 06:24:22.991 17749 17749 D GoogleService: Google service is already connected
12-15 06:24:22.999 17749 17749 D GoogleService: Showing::Loaderboard::CgkI_emEl9gdEAIQAA
12-15 06:24:24.952 17749 17768 I godot   : ^_^_^_^_^ resize -280770256, 1080, 1920
12-15 06:24:25.860 17749 17749 D GoogleService: Google service is already connected
12-15 06:24:25.872 17749 17749 D GoogleService: Showing::Loaderboard::CgkI_emEl9gdEAIQAA
12-15 06:24:27.740 17749 17768 I godot   : ^_^_^_^_^ resize -280770256, 1080, 1920
12-15 06:25:30.371 17749 17749 W godot   : AdMob: onAdLoaded
12-15 06:26:41.717 17749 17749 W godot   : AdMob: onAdLoaded
12-15 06:27:01.363 17749 17749 D GoogleService: Google service is already connected
12-15 06:27:05.911 17749 17768 I godot   : ^_^_^_^_^ resize -280770256, 1080, 1920
12-15 06:27:06.726 17749 17749 D GoogleService: Google service is already connected
12-15 06:27:06.746 17749 17749 D GoogleService: Showing::Loaderboard::CgkI_emEl9gdEAIQAA
12-15 06:27:08.810 17749 17768 I godot   : ^_^_^_^_^ resize -280770256, 1080, 1920
12-15 06:29:27.034 18349 18380 ? SENTINEL_TAG: SENTINEL_MSG_LIBCUTILS
12-15 06:29:27.034 18349 18380 ? SENTINEL_TAG: SENTINEL_MSG_LIBLOG
12-15 06:29:35.565 18535 18535 ? SENTINEL_TAG: SENTINEL_MSG_LIBCUTILS
12-15 06:29:35.565 18535 18535 ? SENTINEL_TAG: SENTINEL_MSG_LIBLOG

@RameshRavone
Copy link
Contributor

RameshRavone commented Dec 15, 2017 via email

@AndersonFirmino
Copy link
Author

I can not remove this module the app is online and I have already paid to make the disclosure of it in several places.

I'll get the logcat.

@AndersonFirmino
Copy link
Author

Here is the logcat

https://gist.github.com/AndersonFirmino/c410680e729ee136d0a8e1715f24ed66

Sorry, but I can not remove the module to reproduce the bug without it. Because I have users and I do not want to take the risk of them updating the application without this module.

And yet it would not even make sense. Because if it were the problem should not work the achievements.

@RameshRavone
Copy link
Contributor

RameshRavone commented Dec 15, 2017 via email

@AndersonFirmino
Copy link
Author

Of admob I am using this module.

https://github.com/kloder-games/godot-admob

And I'll remove and release in closed beta.

@RameshRavone
Copy link
Contributor

RameshRavone commented Dec 15, 2017

Here's your problem, Here

12-15 06:40:33.118 4150 19266 E MultiDataOperation: There is no linked app associated with this client ID.

Meaning your clientID is not matching,

@AndersonFirmino
Copy link
Author

Thank you for your help. It had other credentials that were not true in the json file. I removed. And I'm uploading a new version. I hope that's it.

@AndersonFirmino
Copy link
Author

You were right with an authentication problem. Underneath the cloths I'm having an HTTP 401 error.

I've tried many things already. I believe that there are no more errors in this module. Now all I need is to find out what the problem is with my credentials.

Thank you for helping me to the fullest you can. And for developing this module.

@AndersonFirmino
Copy link
Author

AndersonFirmino commented Dec 16, 2017

🎉 I got it. Finally. Dude, I'm so happy. Wow, I'm going to celebrate \o/ 🎉

🎮 Make a record in my game. Hehehe 😆
https://play.google.com/store/apps/details?id=org.armic.explosion

My game is now complete. Thank you for all the help you gave me during the process. I will post your API to everyone.

The last mistakes were certificate.

Just for anyone having problems with this I will leave the tutorial on how to do the right thing in this issue before closing it.

This issue has helped me at all about issues with certificate.

playgameservices/play-games-plugin-for-unity#1834

@houfaru
Copy link

houfaru commented Mar 21, 2018

Hello,
I'm trying to do the same thing. is this okay for Godot 3?
I'm using Godot 3.0.2 but I I couldn't get it to work even when I installed the apk directly on my tablet.
at first, ./gradlew build did not work, so i did a couple of things:

  1. In the file godot/platform/android/java/gradle.properties, i change
dependencies {
	compile 'com.android.support:support-v4:27.+'  // can be removed if minSdkVersion 16 and modify DownloadNotification.java & V14CustomNotification.java
	compile 'com.google.android.gms:play-services-ads:+'
	compile 'com.google.android.gms:play-services-auth:11.6.0'
	compile 'com.google.android.gms:play-services-games:11.6.0'
	compile 'com.google.firebase:firebase-invites:11.6.0'
}

into

dependencies {
	compile 'com.android.support:support-v4:27.+'  // can be removed if minSdkVersion 16 and modify DownloadNotification.java & V14CustomNotification.java
	compile 'com.google.android.gms:play-services-ads:11.6.0'
	compile 'com.google.android.gms:play-services-auth:11.6.0'
	compile 'com.google.android.gms:play-services-games:11.6.0'
	compile 'com.google.firebase:firebase-invites:11.6.0'
	
}

then, i generated google-services.json from firebase console(I activated firebase but I dont use the module in my project. is this okay?)
Then the build was successful.
i put this in my gd script:

googlePlay=Engine.get_singleton("GooglePlay")
		googlePlay.init(get_instance_id())
		if(googlePlay!=null):
			googlePlay.login()

but i only got

03-21 15:48:03.984: D/GoogleService(19402): Google::Initialized
03-21 15:48:03.986: D/GoogleService(19402): Google not connected
03-21 15:48:28.465: I/GoogleService(19402): PlayGameServices: Google not connected calling connect

I tried many things afterwards including some things I could understand from what both of you discussed. But since the problem is that I couldn't even get it to work on my tablet, would any of you mind helping me make it work on my tablet first?

thanks

@RameshRavone
Copy link
Contributor

Actually you don't have to call login anymore init calls that by default,

@houfaru
Copy link

houfaru commented Mar 21, 2018

i tried removing it, but still doesnt work. I'm doubtful about my google-services.json. I can just add firebase and download it from firebase console right? I tried to play around with Authentication=>SIGN-in method, but the json file doesnt change...

@houfaru
Copy link

houfaru commented Mar 23, 2018

Hi, now it works when i install the apk directly.
But after uploading it on play store, it gives me error:

03-23 12:03:21.704: I/GoogleService(18585): PlayGameServices: Google not connected calling connect
03-23 12:03:28.418: W/GoogleService(18585): SignInResult::Failed code=4, Message: null

any suggestions?

@RameshRavone
Copy link
Contributor

This shows when you are not signed in, try reinstalling and if the problem continues provide me full logcat,

@houfaru
Copy link

houfaru commented Mar 23, 2018

it still doesnt work
maybe i send you the logcat starting from "Play Service Available"

03-23 12:49:17.402: D/GoogleService(22256): Play Service Available.
03-23 12:49:17.420: I/VideoCapabilities(22256): Unsupported profile 4 for video/mp4v-es
03-23 12:49:17.433: D/GoogleService(22256): Google::Initialized
03-23 12:49:17.436: D/GoogleService(22256): Google not connected
03-23 12:49:17.484: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:17.492: W/cr_MediaCodecUtil(22256): HW encoder for video/avc is not available on this device.
03-23 12:49:17.505: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:17.512: D/ufoEGL(22256): droid_create_context : config id = 1 conf->NativeVisualID=1
03-23 12:49:17.512: I/ufoEGL(22256): Requested context : GLES 3.0
03-23 12:49:17.512: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:17.728: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:17.756: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:18.811: D/ufoEGL(22256): Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC
03-23 12:49:18.830: I/chromium(22256): [INFO:CONSOLE(0)] "Document was loaded from Application Cache with manifest https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.appcache", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
03-23 12:49:18.830: I/chromium(22256): [INFO:CONSOLE(0)] "Application Cache Checking event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
03-23 12:49:18.833: I/chromium(22256): [INFO:CONSOLE(0)] "Application Cache NoUpdate event", source: https://googleads.g.doubleclick.net/mads/static/mad/sdk/native/sdk-core-v40-loader.html (0)
03-23 12:49:18.866: W/Ads(22256): Server parameters: {"campaign_id":"1057492276","gwhirl_share_location":"1","pubid":"ca-app-pub-3940256099942544\/5224354917\/cak=no_cache&cadc=ej&caqid=DpW0WpLzNNDzgAeztafoCQ"}
03-23 12:49:18.867: W/Ads(22256): Server parameters: {"campaign_id":"1057492276","gwhirl_share_location":"1","pubid":"ca-app-pub-3940256099942544\/5224354917\/cak=no_cache&cadc=ej&caqid=DpW0WpLzNNDzgAeztafoCQ"}
03-23 12:49:18.882: D/DynamitePackage(22256): Instantiating com.google.android.gms.ads.ChimeraAdManagerCreatorImpl
03-23 12:49:18.890: I/Ads(22256): Starting ad request.
03-23 12:49:18.891: I/Ads(22256): Use AdRequest.Builder.addTestDevice("XXXXXXXXXXXXXXXXXXXXXXXXXXX") to get test ads on this device.
03-23 12:49:18.894: W/Ads(22256): Not retrying to fetch app settings
03-23 12:49:19.070: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:19.189: W/cr_CrashFileManager(22256): /data/data/org.godotengine.feedthepelicans02/cache/WebView/Crash Reports does not exist or is not a directory
03-23 12:49:19.232: D/GODOT(22256): setVirtualKeyboardHeight: 0
03-23 12:49:19.254: D/ufoEGL(22256): Surface destroy: ANDROID_NATIVE_WINDOW_MAGIC
03-23 12:49:19.257: D/ufoEGL(22256): Pixel Format : GGL_PIXEL_FORMAT_RGBA_8888
03-23 12:49:20.494: I/ExoPlayerImpl(22256): Init 1.3.1
03-23 12:49:20.554: W/chromium(22256): [WARNING:render_frame_host_impl.cc(2728)] OnDidStopLoading was called twice.
03-23 12:49:20.662: I/OMXClient(22256): Using client-side OMX mux.
03-23 12:49:20.762: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:20.782: D/ConnectivityManager.CallbackHandler(22256): CM callback handler got msg 524290
03-23 12:49:20.869: I/Ads(22256): Ad finished loading.
03-23 12:49:20.871: I/Ads(22256): Ad finished loading.
03-23 12:49:20.871: W/godot(22256): AdMob: onRewardedVideoAdLoaded
03-23 12:49:25.033: W/GoogleService(22256): SignInResult::Failed code=4, Message: null

based on this https://developers.google.com/android/reference/com/google/android/gms/common/api/CommonStatusCodes.html#SIGN_IN_REQUIRED ,
should i try startResolutionForResult(Activity, int) ?

@houfaru
Copy link

houfaru commented Mar 23, 2018

i tried this(maybe it will be a useful information):

  1. Uninstall the game from play store
  2. Install the same game but directly from apk
  3. Start the game
  4. login successful and i can access leaderboard for the directly installed game
  5. Uninstall again (the one directly installed from apk)
  6. Install the game from play store again
  7. I can access the leaderboard for the play store installed game
  8. Close the game
  9. Open the game again
  10. Sign in failed for the play store installed game

@houfaru
Copy link

houfaru commented Mar 24, 2018

hi, i got it
it's because i'm using Google Play App Signing.
so, there are two types of sha-1 when you use this.
upload & app signing.
when you use Google Play App Signing, google will remove your sign from the apk and re-sign it with their managed certificate.
So, if you use upload sha-1 on console.developers.google.com, then it works when you directly install the apk,
but it wont work if you upload it to play store because google replaces it.
So you have to edit the sha-1 on console.developers.google.com with the one they provided.

Anyway, thanks. I'm using your module.

@MatiasVME
Copy link

I have the same problem :D and is solved in -->

playgameservices/play-games-plugin-for-unity#2045 (comment)

Thanks @RameshRavone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants