How To Use GOOGLE PLAY GAMES SERVICES With UNITY!

แชร์
ฝัง
  • เผยแพร่เมื่อ 26 ส.ค. 2024

ความคิดเห็น • 47

  • @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 :)

  • @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!

  • @thecater6424
    @thecater6424 ปีที่แล้ว

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

  • @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.

  • @rasitakgul
    @rasitakgul ปีที่แล้ว

    It was very helpful. Thank you so much

  • @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

  • @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 :)

  • @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.

  • @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.

  • @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.

  • @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: th-cam.com/video/2mn7z0ddn6o/w-d-xo.htmlsi=gChOtcwEv9-b4LgF