• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Liga97 · May 17, 2016 at 04:22 AM · unity 5

Play services notification issues

Hi All, I am trying to add turn based multiplayer to my game (android). I am using the official plugin:

https://github.com/playgameservices/play-games-plugin-for-unity

I have followed all instructions on "play-games-plugin-for-unity" but I'm not able to send notifications to the other players I invite.

That's a part of my code:

 PlayGamesClientConfiguration config = new PlayGamesClientConfiguration.Builder()
             //.EnableSavedGames()
             .WithInvitationDelegate(OnGotInvitation)
 
             // registers a callback for turn based match notifications.
             .WithMatchDelegate(OnGotMatch) 
 
             .Build();
         PlayGamesPlatform.InitializeInstance(config);
         PlayGamesPlatform.Activate();
 
 ....
 
 PlayGamesPlatform.Instance.TurnBased.TakeTurn(mMatch, mMatchData.ToBytes(), pendingParticipantId, (bool success) =>
                                {
                                    Debug.Log("TakeTurn: " + success);
                                });
 ....

As I understood after I call "takeTurn" all the other players should receive a push notification. I don't have any exception but...push notifications do not appear on invited devices!!

If I open "AcceptFromInbox" I can see that my turn is completed and I'm waiting the other player.

Is there something i forgot? My account and the invited account are configured as testers.

Please let me know...I'm going crazy! :-(

Thanks Liga

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by aditya · May 17, 2016 at 05:27 AM

i don't know much about phones but about tablets i've read somewhere on Unity Answers that if Synchronization is off then you will not get your notification, you can turn it on from Settings

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

3 People are following this question.

avatar image avatar image avatar image

Related Questions

Unity android forces my app to go into 16:9 with "full sreen" button instead of doing the 18:9 0 Answers

How can I change the scale of a 3D Object and the Audio Source's radius in a proportionally way in Unity 5 using C#? 0 Answers

Ui text to string ? 1 Answer

[macOS] cant build windows version,[macOS] Cant build windows version 0 Answers

get_isActiveAndEnabled can only be called from the main thread 0 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges