I am trying to authorize my android game for google play services to be able to use leaderboards etc.
Now when clicking on authorize app, Nothing would happen. On the information page Google tells me to do following things:
I shall specify my application id, but where do i get this "app_id" from? And achievement id? leaderdboard id?
How should this ids.xml look like?
Any ideas?
Android. We use the Application ID (package name) to identify your app inside our system. You can find this in the app's Play Store URL after 'id'. For example, in https://play.google.com/store/apps/details?id=com.company.appname the identifier would be com.
Displays the package name of the app that an ad is advertising in a "Mobile app installs" campaign. Example for Android apps: com.example.android.myapp.
For the redesigned google play console (2020), click the Play Games Services, then click setup and management, then click Configuration. You will see information about your app, one field which is Authorization, and there you will find the application ID.
On the bottom of your 'leaderboards' or 'achievements' page is a handy link labeled 'Get resources'. This will open a page looking something like this:
<?xml version="1.0" encoding="utf-8"?>
<!--
Google Play game services IDs.
Save this file as res/values/games-ids.xml in your project.
-->
<resources>
<string name="app_id">00000000000</string>
<string name="achievement_xxx">0000000000</string>
<string name="achievement_yyy">0000000000</string>
<string name="leaderboard_xxx">000000000000</string>
</resources>
Note that you are directed to put this in a file with an illegal name, 'games-ids.xml'. Eclipse won't let you use a dash in a file name, so either put it in your 'strings.xml' file or use 'ids.xml' for the file name as you planned to, I found both to work.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With