FrogSquare / GodotGoogleService

Google play service, login, achievements, leaderboard.
Apache License 2.0
105 stars 13 forks source link

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

Closed AndersonFirmino closed 6 years ago

AndersonFirmino commented 6 years ago

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? 😅

AndersonFirmino commented 6 years ago

Sorry for the delay in answering you. I had to leave today and just sit down at the computer now. And I just compiled and everything is working. 🍪 Google Play has connected. 🍰

I'll upload it to the Google Play store and as soon as they release the new update let's find out if the issue is resolved.

Today I received a message from Shin-NiL giving me a tip to activate two modules in the API that help make Google Play Services work. He is moderator of Godot's forum. The apis he recommended are:

If you're getting" internal error ", access your Google Developer Console and activate the following APIs for your application:

Google Drive API
Google Play Android Developer API

I would like to thank you for the effort and all the help. I'll add you in the special thanks in the game.

I hope this is the last test.

AndersonFirmino commented 6 years ago

Good news and bad news. The good thing is that I downloaded it from the Google Play store and now connects and achievements finally work.

But Leaderboard only loads and closes. It stopped working. It was working before.

And when you connect in Google Play Games does not come down that welcome notification but at least this connecting as it should, that's just a detail.

In my game I put a control to represent the leaderboard when it clicks it appears a java error. ARGNAME: java.lang.String

12-12 00:38:31.303 26983 26983 D GoogleService: Play Service Available.
12-12 00:38:31.322 26983 26983 D GoogleService: Google initialized.
12-12 00:38:31.330 26983 26983 D GoogleService: Google already connected to an account
12-12 00:38:31.330 26983 26983 D GoogleService: Google signed in.
12-12 00:38:31.330 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:31.330 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:31.331 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:31.337 26983 26983 D GoogleService: Google service is already connected
12-12 00:38:31.339 26983 26983 D godot   : AdMob: Hide Banner
12-12 00:38:35.315 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.315 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.319 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.319 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.332 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.332 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.334 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.334 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.337 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.337 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.341 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.341 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.344 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.344 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.348 26983 26999 I godot   : WARNING: _png_warn_function: iCCP: known incorrect sRGB profile
12-12 00:38:35.349 26983 26999 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-12 00:38:35.378 26983 26999 I godot   : Dados carregados.
12-12 00:38:36.716 26983 26983 W godot   : AdMob: onRewardedVideoAdLoaded
12-12 00:38:38.083 26983 26983 W godot   : AdMob: onAdLoaded
12-12 00:38:39.478 26983 26983 D godot   : AdMob: Show Banner
12-12 00:38:40.607 26983 26983 D GoogleService: Google service is already connected
12-12 00:38:47.659 26983 26983 W GoogleService: signInResult:failed code=8, Message: null
12-12 00:38:47.667 26983 26999 I godot   : ^_^_^_^_^ resize -278988496, 1080, 1920
12-12 00:38:48.429 26983 26983 D GoogleService: Google signed in.
12-12 00:38:48.429 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:48.430 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:48.430 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:52.251 26983 26983 D GoogleService: Google service is already connected
12-12 00:38:53.542 26983 26999 I godot   : ^_^_^_^_^ resize -278988496, 1080, 1920
12-12 00:38:54.342 26983 26983 D GoogleService: Google signed in.
12-12 00:38:54.343 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:54.343 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:38:54.343 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:00.051 26983 26983 D GoogleService: Google service is already connected
12-12 00:39:01.771 26983 26999 I godot   : ^_^_^_^_^ resize -278988496, 1080, 1920
12-12 00:39:02.578 26983 26983 D GoogleService: Google signed in.
12-12 00:39:02.579 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:02.579 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:02.579 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:06.683 26983 26983 D GoogleService: Google service is already connected
12-12 00:39:08.358 26983 26999 I godot   : ^_^_^_^_^ resize -278988496, 1080, 1920
12-12 00:39:09.168 26983 26983 D GoogleService: Google signed in.
12-12 00:39:09.168 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:09.169 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:09.169 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:15.517 26983 26983 D GoogleService: Google service is already connected
12-12 00:39:17.106 26983 26999 I godot   : ^_^_^_^_^ resize -278988496, 1080, 1920
12-12 00:39:17.866 26983 26983 D GoogleService: Google signed in.
12-12 00:39:17.866 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:17.866 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:17.866 26983 26983 I godot   : ARGNAME: java.lang.String
12-12 00:39:18.317 26983 26983 D GoogleService: Google service is already connected

I'll leave the link for my game in case you want to see it. https://play.google.com/store/apps/details?id=org.armic.explosion

RameshRavone commented 6 years ago

ARGNAME: java.lang.String This is not an error, It's an argument type debug log printed by godot in type conversion jobject to Variant. you can ignore that.

This happens when a function is called from Java to GDScript and those are the function arguments/parameters

AndersonFirmino commented 6 years ago

Got it. I think that now it is only necessary to see this problem of the classification table. Correcting this problem, the module will be 100% functional.

RameshRavone commented 6 years ago

Push some improvements, and before testing, uninstall your App/Game, Clear Google Play Games and Google Play Service, I updated the log command as well, so try that.

I test with almost three different games and every thing works as it should be. though I had some problems in one of than but when I cleared the cache and used different account it worked,

So try different account if problem continued.

AndersonFirmino commented 6 years ago

Well, I did a lot of testing. And it's working It now connects to Google Play even though it does not notify the user with the welcome message.

I called some friends with their smarthphones for us to do tests.

So I would know if my account is in trouble or the module is in trouble.

One of them won my game by completing the challenge of reaching 999 points.

It causes some confusion not to show the notification that the user is connected. That welcome user notification.

He won all the achievements but did not show the notification saying that the achievement was unlocked.

No Google Play Service notifications are showing.

And unfortunately no one has been added to the leaderboard. The person can see the scores but is not added to the leaderboard with his score. And that worked before.

We cleared the game cache. The cache of google play and still the problems persisted.

We play with the latest version of my game that's in the Google Play store.

In this version I'm using your last commit: 181f3a5 The version of my game is 0.9.5.25

In case you want to test in the game you will see these problems that I mentioned above.

RameshRavone commented 6 years ago

Well, that might have been my mistake, it seems we need to sent the parent view for pop-up that is new.

And found a lot of reasons Google signin could cause problems. this is too much data for me. well thanks to you I learn a whole lot of things.

well, test the recent push and lets hope that fixed some.

AndersonFirmino commented 6 years ago

I'm glad to have helped you learn more. I'm really excited about this module. And very happy to be helping Godot in some way.

I'll start the tests and I'll be back with feedback shortly.

AndersonFirmino commented 6 years ago

The notifications are popping up and everything works perfectly. Achievements are working perfectly even notifications. When you log in you have the welcome notification as expected.

But the leaderboard is still bugged. He does not update the scoreboards anymore. The only remaining problem is the leaderboard.

AndersonFirmino commented 6 years ago

another problem with the leaderboard. It opens immediately loads and closes the same behavior that the login was having before. Only now it's only with the leaderboard

RameshRavone commented 6 years ago

The problem is surely not related to the module, maybe you are messing the android UI screens. try to launch Leader board from a empty scene and see what happens.

AndersonFirmino commented 6 years ago

I did some more tests. And when I compile the apk on the first call it works. It loads the leaderboard. When the player plays the game and breaks a record and the call to the update of the leaderboard happens he starts to give trouble.

AndersonFirmino commented 6 years ago

And in this when the player returns to the home screen and tries to call the leaderboard it loads and closes. I think it might be because he is not getting the update.

Because he obeys a first call. He just stops obeying when he calls the leaderboard update and returns to the home screen again.

AndersonFirmino commented 6 years ago

I used 3 different androids to take the test.

The same problem still persists. Leaderboard is not working right.

I tried to create an empty scene with just the leaderboard call.

Result: Same thing. It's not working right.

😓

RameshRavone commented 6 years ago

OK, lets see what activity results are,

Add this to the onActivityResult Line; 244

if (requestCode == REQUEST_LEADERBOARD) {
        Utils.d("Leaderboard::Activity::ResultCode::" + Integer.toString(resultCode)
        + "::Data::" + data.toString());
}
AndersonFirmino commented 6 years ago

The file is the PlayService.java I will add the rows compile and see the error that is giving.

AndersonFirmino commented 6 years ago

I do not handle much of Java but as I saw it was using Log.d to do debug I changed the Utils.d by Log.d.

Because I was having trouble compiling with gradle

AndersonFirmino commented 6 years ago

I did the tests and the log. Locally without getting into the store everything seems to be working.

I'll compile again and test when I'm online at the store.

Download and hit the achievements and see if everything works.

AndersonFirmino commented 6 years ago

I just tested with this snippet of code to see the logs and see if there were any errors.

When I compile and install the APK locally. All functionalities of the module work.

When I upload it in the store and download the game. When you open it for the first time it works.

But when I play and I hit a record, when I try to open the leaderboard to see if my record is there.

It opens loads and closes. The Achievements works normally it is only in the leaderboard that this one has problem.

AndersonFirmino commented 6 years ago

Just to complement.

I cleaned all the caches and tested on different devices.

No errors appear in the log.

RameshRavone commented 6 years ago

Those are not for error, but it should print a log. we need resultCode of the leaderboard activity to know what's happening to the started Activity from leaderboard_show Line: 201

And can you try disabling admob and try this.

RameshRavone commented 6 years ago
Utils.d("Leaderboard::Activity::ResultCode::" + Integer.toString(resultCode) + "::Data::" + data.toString());

Works with GodotFireBase are you not using that. if so we have to use Log.d sorry about that

AndersonFirmino commented 6 years ago

I'll do what you're asking, see the error log and leave it here.

This being frustrating only need to work that part is the game will be complete. 😞

Other than that my game is about score.

AndersonFirmino commented 6 years ago

I did what you said above. And this is the log it generated.

Same thing. It works the first time and then it does not open anymore. Just the leaderboard. The achievements works.

12-15 03:53:35.821  2510  2510 D GoogleService: Google service is already connected
12-15 03:53:35.821  2510  2510 I GoogleService: PlayGameServices: leaderboard_submit, 286
12-15 03:53:45.923  2510  2567 I godot   :    At: drivers\png\image_loader_png.cpp:66.
12-15 03:53:45.940  2510  2567 I godot   : Dados carregados.
12-15 03:53:45.949  2510  2510 D godot   : AdMob: Show Banner
12-15 03:53:49.416  2510  2510 D GoogleService: Google service is already connected
12-15 03:53:49.433  2510  2510 D GoogleService: Showing::Loaderboard::my leaderboard code 
12-15 03:53:59.134  2510  2510 D GoogleService: Google service is already connected
12-15 03:53:59.147  2510  2510 D GoogleService: Showing::Loaderboard::my leaderboard code
12-15 03:54:05.018  2510  2510 D GoogleService: Google service is already connected
12-15 03:54:05.026  2510  2510 D GoogleService: Showing::Loaderboard::my leaderboard code
RameshRavone commented 6 years ago

your leaderboard id shows my leaderboard code,

On 15-Dec-2017 11:27 am, "Anderson Araujo" notifications@github.com wrote:

I did what you said above. And this is the log it generated.

Same thing. It works the first time and then it does not open anymore. Just the leaderboard. The achievements works.

12-15 03:53:35.821 2510 2510 D GoogleService: Google service is already connected 12-15 03:53:35.821 2510 2510 I GoogleService: PlayGameServices: leaderboard_submit, 286 12-15 03:53:45.923 2510 2567 I godot : At: drivers\png\image_loader_png.cpp:66. 12-15 03:53:45.940 2510 2567 I godot : Dados carregados. 12-15 03:53:45.949 2510 2510 D godot : AdMob: Show Banner 12-15 03:53:49.416 2510 2510 D GoogleService: Google service is already connected 12-15 03:53:49.433 2510 2510 D GoogleService: Showing::Loaderboard::my leaderboard code 12-15 03:53:59.134 2510 2510 D GoogleService: Google service is already connected 12-15 03:53:59.147 2510 2510 D GoogleService: Showing::Loaderboard::my leaderboard code 12-15 03:54:05.018 2510 2510 D GoogleService: Google service is already connected 12-15 03:54:05.026 2510 2510 D GoogleService: Showing::Loaderboard::my leaderboard code

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/2#issuecomment-351920884, or mute the thread https://github.com/notifications/unsubscribe-auth/AJp7PluQ8v6iuS1a1nP4EIRSLzJfFRr0ks5tAgpkgaJpZM4Q8XEe .

AndersonFirmino commented 6 years ago

I hid. Before posting here. But he appears to me in the logs.

AndersonFirmino commented 6 years ago

I'm a believer who has some error in the update method call. Because it's just him who's giving trouble.

Achievements are running normal.

RameshRavone commented 6 years ago

OK, try this #2045 (comment), and if continued, pls send me the logcat.

AndersonFirmino commented 6 years ago

That does not make any sense.

When I first downloaded your code and compiled the leaderboard it worked. It was the only one that worked.

If you download my game and see the leaderboard. You will see saved scores. It was in the previous version.

Only I had other problems that you corrected.

After this update only the leaderboard stopped working.

In my case it loads and closes.

The developers of Google. They do not recommend you create the keys manually because it is extremely problematic.

https://www.youtube.com/watch?v=nkJS_W-VC9I

RameshRavone commented 6 years ago

The thing I did tried your game and yes leaderboard crashes, but I don't know why and activity is not closing it's something like hiding. I did tried to replicate this but the module works perfectly, I open leader board closed, updated leaderboard score, loaded is again. That is why I asked you to remove other module and try.

AndersonFirmino commented 6 years ago

The problem is that I have users downloading the game.

I do not want them to go down without the ADS. Not all users frequently update the game.

And this only happens with the version downloaded by Google Play.

When I compile the APK locally and install it works perfectly.

When I go to the store and you download the version of Google Play starts the problems with the leaderboard.

RameshRavone commented 6 years ago

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 commented 6 years ago

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

AndersonFirmino commented 6 years ago

I guess you're right.

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

screenshot

AndersonFirmino commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

as I already mentioned without logcat I can't do anything. I can't reproduce this.

On 15-Dec-2017 1:56 pm, "Anderson Araujo" notifications@github.com wrote:

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.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/2#issuecomment-351943746, or mute the thread https://github.com/notifications/unsubscribe-auth/AJp7Pt3aYkSX0lB_nLs_5J8vZrwCcis6ks5tAi0ogaJpZM4Q8XEe .

AndersonFirmino commented 6 years ago
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 commented 6 years ago

I'm tailking about adb logcat > logcat do not filter them, and as I already said try removing the admob module.

On 15-Dec-2017 2:03 pm, "Anderson Araujo" notifications@github.com wrote:

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::CgkIemEl9gdEAIQAA 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::CgkIemEl9gdEAIQAA 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::CgkIemEl9gdEAIQAA 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::CgkIemEl9gdEAIQAA 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

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/2#issuecomment-351945131, or mute the thread https://github.com/notifications/unsubscribe-auth/AJp7PlywDiTczomXm8KP8_qqu-4ATwoxks5tAi7KgaJpZM4Q8XEe .

AndersonFirmino commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

Can you atleast list the module you are using, I can't fix something if I don't even know where I'm look, and I asked you to test the game in closed beta mode, no one's can download that.

On 15-Dec-2017 2:18 pm, "Anderson Araujo" notifications@github.com wrote:

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.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/FrogSquare/GodotGoogleService/issues/2#issuecomment-351948220, or mute the thread https://github.com/notifications/unsubscribe-auth/AJp7PiTeDtWmPVF4qmilVZEBZ1UPDCt4ks5tAjJugaJpZM4Q8XEe .

AndersonFirmino commented 6 years ago

Of admob I am using this module.

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

And I'll remove and release in closed beta.

RameshRavone commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

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 commented 6 years ago

:tada: 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.

https://github.com/playgameservices/play-games-plugin-for-unity/issues/1834

houfaru commented 6 years ago

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