Search Unity

Easy Google Play Service - Multiplayer

Discussion in 'Multiplayer' started by Akki-bhatt, Jul 28, 2017.

  1. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    Easy Google Play Service - Multiplayer is a wrapper of google play game services in which you can access the following functionality.
    GpgsScreenShot.jpg
    This Package Includes :

    -Achievements

    -Leaderboard

    -Cloud Save

    -Video Recording

    -Real-time multiplayer

    You can find details about the services here: https://developers.google.com/games/services/

    Multiplayer functionality is supported only for Android.

    Download From here.
    Briefly, discuss in this blog.
     
  2. ozgurhazar

    ozgurhazar

    Joined:
    Aug 30, 2014
    Posts:
    19
    Crash !. When Savedgame is enable.
    Last google play games plugin 0.9.40
    unity 5.6.3f1
    Thanks
     
  3. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    I tested with Unity 5.6.3f1 it's working great with saved game enable.please check you can't miss something
     
  4. AntonioC3

    AntonioC3

    Joined:
    Sep 17, 2017
    Posts:
    2
    Hello, I tested with Unity 2017.1.0f3 and does not connect to google service by clicking Log In :( can you help me? the version of the plugin is 0.9.41 HELP!!!
     
  5. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    make sure to configure google play service and user latest android sdk
     
  6. AntonioC3

    AntonioC3

    Joined:
    Sep 17, 2017
    Posts:
    2
  7. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    47
    Hi,

    I just bought your asset and haven't really got a chance to try out all the features yet, but I have a request to make. Is it possible to have an example of how to let the users to change their profile photo when joining game rooms? If you can consolidate the methods within your asset, that would be much better.

    Cheers,
     
  8. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    Thank you for your appreciation, sure we will add it on later update.
     
  9. domdev

    domdev

    Joined:
    Feb 2, 2015
    Posts:
    375
    this asset can do google login? in android?
     
  10. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    yes it is
     
  11. hscodesolution

    hscodesolution

    Joined:
    Sep 27, 2017
    Posts:
    1
    I have problem to authenticate in play games in new version 0.9.41 and unity version is 5.6.3f1
     
  12. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    Please share your logcat
     
  13. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    anyone who can be facing the Error_UI_busy problem with google play game version 0.9.41 is trying adding the following to manifest
    <activity android:name="com.google.games.bridge.NativeBridgeActivity"
    android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen" />

    it probably be bug in new unity package 0.9.41
     
  14. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    47
    Hi,

    I'm also having a problem in signing in, even after I modified AndroidManifest.xml file to add the above activity. I've already emailed you the logcat output file.

    Thanks.

    Cheers,
     
    Last edited: Oct 10, 2017
  15. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    47
    Hi,
    Any update on the issue above?
     
  16. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    Seen your logcat,try to update android SDK to the latest version.
    I'll try it on 2017.1 with 0.9.41 and it's Woking awesome.
    What unity version do you use?
     
  17. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
    There is some problem with the latest 0.9.41 google play game,try to downgrade it
     
  18. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    47
    Hi,

    Thanks for the reply. I already tested the demo scene with 0.9.39, and it also didn't work. I followed the instructions as listed in the documentation, but when trying to sign in, I got the same "Failed to sign in with Google Play Games" in the logcat output.

    In my case, usually the first time signing in could proceed properly after installing the apk but room creation failed. And when the application is restarted the signing in failed every time afterwards.

    Plus, as I've asked you in the email, since Google+ has been deprecated by Google, should the two testing accounts still need to be linked together via Google+?

    Thanks.
     
  19. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    47
    I'm using Unity 2017.1.2f1 on Linux with plugin version 0.9.41. There must be something wrong that I've done in the setting up process somewhere. Is it possible to have a more detailed instructions than what we have in the README.txt with the asset?

    Thanks.

    EDIT : I'm using build-tools version 25.0.2, which is kinda old. I'll try upgrading it to 26.0.1 and will report back if everything goes OK. Thanks.
     
    Last edited: Oct 10, 2017
  20. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    47
    Hi,

    Latest, still failed to sign in. I've already upgraded the build-tools to 26.0.2 and Android platform 26. I also have another asset that uses Google Play Services and it could run fine using plugin 0.9.41. Plus I've also tested the QuizRacer from the play games plugin for unity using 0.9.41 and it could connect, create a room and run the simple game. Any idea where should I check to identify the problem?

    Thanks.
     
  21. Muhamad_Faizol

    Muhamad_Faizol

    Joined:
    Jan 21, 2017
    Posts:
    47
    Hi,

    I've managed to sign in and tested the simple multiplayer demo.

    I would like to suggest one thing, if I may - the documentation. Just a simple readme.txt won't be helpful enough. While I can browse the source code to nail on what might be the culprit(s), the whole experience would be much faster if this asset has a more thorough documentation. Also, that's a must if this asset is to be rated highly in the store.

    I still have some problems in using the asset in some of my devices. I found out that if I enabled save data option, then the app crashes on my device that uses KitKat, while it runs OK on newer device (Nougat). But I guess that no longer has anything to do with your asset per se. However it would be helpful if anyone can point out on what might be the cause.

    Thanks.

    Cheers,
     
    Last edited: Oct 13, 2017
  22. Akki-bhatt

    Akki-bhatt

    Joined:
    Jul 8, 2017
    Posts:
    19
  23. robertoltrocha

    robertoltrocha

    Joined:
    Oct 22, 2017
    Posts:
    2
    Hi, if I to install this plugin I will have some issue when I build iOS? I know that this plugin is only to android. I have to disable something to build IOS? my game is to android and iOS. I do not want to do two builds.
    Thanks
     
  24. storybelldev

    storybelldev

    Joined:
    Dec 12, 2017
    Posts:
    6
    Multiplayer Working Great....
    Thanks for this wonderfull asset
     
  25. storybelldev

    storybelldev

    Joined:
    Dec 12, 2017
    Posts:
    6
    check platform in coding,,whether it is for android or ios
     
  26. storybelldev

    storybelldev

    Joined:
    Dec 12, 2017
    Posts:
    6
    After updating google play game plugin and android sdk....build success
     
  27. ambidexter

    ambidexter

    Joined:
    Aug 20, 2017
    Posts:
    1
    Cloud storage is not working properly.
    I have done the settings on the console.
    However, we have confirmed that game storage is not working properly.
     
  28. Vasiliy-V-V

    Vasiliy-V-V

    Joined:
    Dec 9, 2013
    Posts:
    7
    Hi, I create empty project in Unity 2018.3.0b1, added your plugin and GooglePlayGamesPlugin-0.9.50 . Build with gradle signed apk. Run on device and when I click "Log In" it's crashed.
    After that I build apk with "Internal(deprecated)". Run on device and all works: sign-in, show achievs, show leaderboards.
    Can you or someone help me please to build apk with gradle without problems on log-in?

    I can upload two apks for investigations.

    I has make some investigations and found that in manifest of gradle apk value for APP_ID with space at start:
    <meta-data
    android:name="com.google.android.gms.games.APP_ID"
    android:value=" 773040590326" />

    On apk builded with "Internal" APP_ID value in manifest without space.