How To Use GOOGLE PLAY GAMES SERVICES With UNITY!

Поділитися
Вставка
  • Опубліковано 25 сер 2024

КОМЕНТАРІ • 47

  • @thecater6424
    @thecater6424 Рік тому

    I love You bro! This is the perfect tutorial for Google play services

  • @rasitakgul
    @rasitakgul Рік тому

    It was very helpful. Thank you so much

  • @scil4
    @scil4 4 місяці тому +3

    Could you please make another tutorial video like this one but updated?

    • @freedomcoding
      @freedomcoding  4 місяці тому +2

      Sorry, but it is not on my list currently. Maybe some time in the future.

  • @michalmargetinsk
    @michalmargetinsk 11 місяців тому

    Super tutorial! Na začiatku som si ani nevšimol že si čech 😀.

    • @freedomcoding
      @freedomcoding  11 місяців тому

      Jsem rád, že ti tutoriál pomohl!

  • @slavomirzatko5133
    @slavomirzatko5133 7 місяців тому

    Hey, this is a perfect tutorial, isn't it? Thank you so much! Greetings from Slovakia, my čech brother!

    • @freedomcoding
      @freedomcoding  7 місяців тому

      I am glad you liked it! Greetings to you too, my Slovak brother :)

  • @godspowerjemifor4739
    @godspowerjemifor4739 Рік тому +1

    Hello, nice video. Thank you!
    Also, can you show how to change the keystore fingerprint and api keys to live from testing when development is done and also uploading the app to playstore?

    • @freedomcoding
      @freedomcoding  Рік тому

      Thanks! I will be soon releasing my own app, so I can then make a video on this.

  • @scil4
    @scil4 4 місяці тому +1

    I have followed all the steps you do in the video but when I press play in Unity, I still get the red fail screen that appeared to you at the beginning.... Do you know what could be the solution?

    • @freedomcoding
      @freedomcoding  4 місяці тому +1

      Hi, did you take a look in the log to see what error it is giving you? docs.unity3d.com/Manual/android-debugging-on-an-android-device.html#usb-debugging

  • @giacomoguercio1015
    @giacomoguercio1015 2 місяці тому

    Do you know if Google apply you some fee when using Google Save Data?

    • @freedomcoding
      @freedomcoding  2 місяці тому +1

      Hi, it seems that there is no fee - www.quora.com/Are-the-Google-Play-Game-Services-totally-free

  • @davutinat
    @davutinat 8 місяців тому

    Hello, I made the google play console settings and added a logo on the OAuth consest screen. Later, after the tests, I wanted to publish it on the OAuth consest screen and it asked me for a lot of requirements. After some research, I realized that I shouldn't add a logo, so I clicked on the edit app and removed the logo. Then, when I clicked publish, it changed the application from test to production status. My application is now live on the play store and I wonder if Publishing Status is important in the OAuth consest screen? So I published the app and whoever downloads it can successfully Authenticate and submit their score to the leaderboard?

    • @freedomcoding
      @freedomcoding  8 місяців тому

      Hi, I am not an expert in this. Did you test it? I would say production status is okay...

    • @davutinat
      @davutinat 8 місяців тому +1

      Yes I tested it and I did it with a user who was not a test user. I think it works :)@@freedomcoding

  • @artdesireboutique
    @artdesireboutique 6 місяців тому

    Shouldn't the Client ID be a WEB client and not ANdroid?

    • @freedomcoding
      @freedomcoding  6 місяців тому

      It is quite some time since I worked with Google Play Services. If it works, why change it? :D

    • @freedomcoding
      @freedomcoding  6 місяців тому

      Someone else may be able to give you a better answer.

  • @itaytamir4382
    @itaytamir4382 4 місяці тому

    Thanks for the tutorial!
    I followed all the steps but the app fails to authenticate with Google Play Game on the mobile device + I get the same red screen you see in Unity and a message: Failed to authenticate with Canceled.
    Did you encounter this issue?

    • @itaytamir4382
      @itaytamir4382 4 місяці тому +1

      Nvm, I solved the issue.
      When you download the app from the store you need to use the Sha-1 from the App signing key certificate in the App signing section for the cloud credentials.
      Thank you for the great tutorial!

    • @freedomcoding
      @freedomcoding  4 місяці тому +1

      Thanks for sharing the solution. I am glad you fixed it and liked the tutorial!

    • @scil4
      @scil4 4 місяці тому

      @@itaytamir4382 I have the same issue, but I don't understand you. How can I solve the issue? thank you

    • @itaytamir4382
      @itaytamir4382 3 місяці тому

      @@scil4 Hi!
      If you have the same Sha-1 issue that I had then you need to use the correct sha-1 key for each situation:
      If you're downloading the app from the Play Store use the Sha-1 under the App signing key certificate section (under App signing) to create the cloud credentials in the Google Cloud console.
      How do you install the game on your device? From the store or using apk?
      Hope this helps :)

  • @thawzan7370
    @thawzan7370 Рік тому

    does this work with pc build?

    • @freedomcoding
      @freedomcoding  Рік тому

      Google play games services i mainly for mobile games, so I am not sure. I will test it!

  • @md_rofique
    @md_rofique Рік тому

    Where can I find the achievementui script?

    • @md_rofique
      @md_rofique Рік тому

      I don't have that maingui script also

    • @freedomcoding
      @freedomcoding  Рік тому

      @@md_rofique In the video i showed you how to download the example project from Github. You can find the link to Github in description.

  • @adslpiulentoditalia2545
    @adslpiulentoditalia2545 Рік тому

    Hey. I'm so thankful for this. The things that you make looks so easy.
    Btw I want to give you some tips.
    There's no need to set minimum API android to 10 because in some scripts of google it just enough to set minimum API to 25 so you can actually build for lollipop android version.
    Actually now it's saving and loading fine the only problem is that I encountered that once you delete and clear data apk it seems that google cloud can't retrieve the saved data back and I don't know why. Could be that a bug or something? It's working fine while I don't clear data from my game but then all the data restart back again. Let's say I have 500 golds as the default after collecting some let's say 550 and saving to cloud works fine but after clearing the data of apk... cloud restore again to 500 even if it was saving for 550 I have no clue why is this happening. Is that does for you as well?

    • @freedomcoding
      @freedomcoding  Рік тому

      I am glad it was helpful! I think that when you delete the app data you would need to check if there is data on the cloud and if yes then download it and store it locally once more but I am not sure. I have been doing some research and I know that other people have been definitely doing more checks for the data.

    • @adslpiulentoditalia2545
      @adslpiulentoditalia2545 Рік тому

      @@freedomcoding I'm actually using that I made a json file as a local save which is more faster that the cloud to make sure that everytime it gonna save it as some point. But after checking it from scripts and saying in the code if there's a data on the cloud which return true but for some reason it reset it instead of retrieve the last saved. :(
      My order of saving data is something like this:
      1. If there's no save data I create a Json file as a local save
      2. If Json data exists and checking if the cloud contains some data to load otherwise I'm gonna save this string to google cloud
      3. And after that if users gonna clear data then I make sure that first we create Json file and then checking for cloud againg and then load it.

    • @knightwill2871
      @knightwill2871 11 місяців тому

      For me, I will record total playTime so that when there is data that has long playTime will override the shorter one.

  • @cosmiccube2961
    @cosmiccube2961 Рік тому

    Do you know anything about old data and existing data?

    • @freedomcoding
      @freedomcoding  Рік тому +1

      You mean saving data locally and then checking for changes and either downloading new data or saving it to cloud? I havent done that but I have a friend who did so I could try it and record a video about it if that is what you want 😀

    • @cosmiccube2961
      @cosmiccube2961 Рік тому

      @@freedomcoding When you save data a second time it doesn't work because the old data overwrites the new data.

    • @freedomcoding
      @freedomcoding  Рік тому +1

      @@cosmiccube2961 I will take a look at it.

    • @cosmiccube2961
      @cosmiccube2961 Рік тому +1

      @@freedomcoding Thank you buddy.

  • @calvinms7503
    @calvinms7503 Рік тому

    Cannot Add Credential, the button is not clickable

    • @freedomcoding
      @freedomcoding  Рік тому +1

      This is most likely because you forgot to set up something. Have you set up the OAuth correctly?

    • @calvinms7503
      @calvinms7503 Рік тому

      @@freedomcoding My bad, when I opened google cloud, there was no project, so I made a new project, turned out this new project is not link with the one in the PlayConsole. When I checked the list of the project, there is a project associated with my game in the PlayCOnsole :)

  • @Ballistic_Defense
    @Ballistic_Defense Рік тому +1

    if (status != SavedGameRequestStatus.Success)
    {
    Debug.LogError("Error opening saved game");
    isSaving = false;
    return;
    } the status always returns "internal error", has anyone experienced this or have a solution to it for google saved games?

    • @lucassantos2805
      @lucassantos2805 7 місяців тому +2

      did you fixed it?

    • @Ballistic_Defense
      @Ballistic_Defense 7 місяців тому

      @@lucassantos2805 Yes: ua-cam.com/video/2mn7z0ddn6o/v-deo.htmlsi=gChOtcwEv9-b4LgF