Implementing leaderboard using Google Play Games Services Plugin for Godot?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By subtree

I am trying to implement leaderboard in my game using GitHub - cgisca/PGSGP: Play Games Services plugin for Godot Game Engine - Android module.What are the steps which I have to follow to implement leaderboard using Google Play Games Services Plugin for Godot-3.2.2? As per the instructions given in the module I added the following lines in AndroidManifest.xml file.

<meta-data 
     android:name="com.google.android.gms.games.APP_ID"
     android:value="@string/app_id" />

Then created Strings.xml file and added the following code inside it.

<?xml version="1.0" encoding="utf-8"?>
<resources>
	<string name="app_id">745298242451</string>
</resources>

I created values folder inside my project folder and placed Strings.xml inside the values folder: res->values->Strings.xml (not sure whether this step is correct)
But when I export the project I get the following error:
Google Photos

If instead of doing the above steps If I just add the following to my AndroidManifest.xml file:

<meta-data 
  android:name="com.google.android.gms.games.APP_ID"
  android:value="745298242451" />

I get the following error:

2020-12-05 10:43:56.270 3136-15861/? W/Bundle: Key com.google.android.gms.games.APP_ID expected String but value was a java.lang.Float.  The default value <null> was returned.
2020-12-05 10:43:56.270 3136-15861/? W/Bundle: Attempt to cast generated internal exception:
    java.lang.ClassCastException: java.lang.Float cannot be cast to java.lang.String
        at android.os.BaseBundle.getString(BaseBundle.java:1167)
        at cak.a(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):22)
        at dne.a(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):92)
        at biz.a(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):0)
        at biw.run(:com.google.android.play.games.services@206160040@2020.08.20616 (329532961.329532961-000400):1)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
        at java.lang.Thread.run(Thread.java:764)
2020-12-05 10:43:56.273 563-563/? I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-12-05 10:43:56.287 563-563/? I/chatty: uid=1000(system) /system/bin/surfaceflinger identical 2 lines
2020-12-05 10:43:56.288 563-563/? I/ConfigStore: android::hardware::configstore::V1_0::ISurfaceFlingerConfigs::hasHDRDisplay retrieved: 0
2020-12-05 10:43:56.291 3136-15861/? E/PlayGamesServices[GamesAuthenticator]: ****
    **** APP ID IS NOT CORRECTLY CONFIGURED TO USE GOOGLE PLAY GAMES SERVICES
    **** Your AndroidManifest.xml file does not contain an APP_ID meta-data tag**** or contains an incorrect one.
    ****
    **** Please verify that your manifest refers to the correct project ID. 
    ****
    **** For more information, refer to the troubleshooting guide:
    **** https://developers.google.com/games/services/android/troubleshooting#check_your_metadata_tags
:bust_in_silhouette: Reply From: Suleymanov

Did you succeed with leaderboard? I need to implement one now but not much info around.

I was able to implement leaderboard using the Silentwolf website. Link: https://silentwolf.com/
I did not succeed with the Google play services plugin. But the above link is free and the leaderboard is easy to implement. Just follow the instructions. And if you get stuck, I will try to help you out.

subtree | 2021-07-20 12:27

Thank you so much!

Suleymanov | 2021-07-20 12:32