Search Unity

Chat/Instant Messaging Plugin ?

Discussion in 'General Discussion' started by ttermeer, Feb 15, 2017.

  1. ttermeer

    ttermeer

    Joined:
    Feb 3, 2016
    Posts:
    10
    Anybody knows a plugin that handles 1 on 1 chat system that works even if the other user is offline ?

    We like to add chat features to our turn based game but I am amazed that such simple plugin is not available in the asset store ( or I am not good enough to find it ! )
     
  2. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    It's not simple if it needs to work when a user is offline. Then you most likely need some sort of a service or a custom server to store and serve the messages.
     
    Kiwasi likes this.
  3. ttermeer

    ttermeer

    Joined:
    Feb 3, 2016
    Posts:
    10
    Indeed. But seeing so many different kind of services nowadays that offers some kind of hosting ( logs, events, backend etc .. ), I am pretty sure a service for chatting must exist
     
    rahulk1991 and Deleted User like this.
  4. MD_Reptile

    MD_Reptile

    Joined:
    Jan 19, 2012
    Posts:
    2,664
    One ready to use in unity? I've not seen one, might be a paid asset somewhere that handles most of it.

    I use firebase for the messaging backend (the database, not the actual "firebase messaging") that is part of the firebase unity sdk, and had to write the chat client part myself. The "offline" part is handled by push messages on android.

    Wanna see how that has turned out so far?
    https://forum.unity3d.com/threads/help-test-my-unity-social-app-for-android.456658/
     
  5. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,175
    Most chatting services exist as part of a framework. GameSparks and PlayFab, for example, have chatting frameworks in addition to all of the other services they offer. To my knowledge the only solution that is standalone is Photon Chat.

    An asset plugin is not sufficient as you need a backend server to deliver the messages when they are offline.

    There are two main reasons for this: (a) game networking frameworks, as I mentioned earlier, often include this as part of their framework, and (b) chat systems are one of the easiest networking topics where practically everyone capable of building their own multiplayer system is capable of building their own chat system.
     
    Last edited: Feb 16, 2017
    wccrawford and Kiwasi like this.
  6. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    No I didn't find a chat system as you mention.

    Yes is simple to build a 1 on 1 chat system. @ttermeer There is an old book that shows how to make multiplayer and chat in a simple way. Is not updated and Unity has improved a lot server network system. But I still recommend it. Also looking into youtube video in how to make a chat system using Unity. Look int the Unity Networking first. Is simple if you do it by yourself. Sometimes using others plug-in can be more complicated at long terms.

    If you want a chat system that works even if the other user is offline but connected to internet. Then probably you need to do a second application that is always connected and sending receiving messages when the game is not open. I let you know that if you have a server, you can also send a short message sms to others player phone using a PHP. In this way if the other player is not in the game or is not connected at all it can receive the chat message in the phone.
    You can also think in integrating with WhatsApp into the game?
     
  7. ttermeer

    ttermeer

    Joined:
    Feb 3, 2016
    Posts:
    10
    Yes I am well aware of that.

    Thanks for the all the reply. I guess I cannot avoid doing it myself
     
  8. ttermeer

    ttermeer

    Joined:
    Feb 3, 2016
    Posts:
    10
  9. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    21,175
    Just be prepared to be quoted a high number when you reach the point that you need to "Contact Us". That's almost always the case where that phrase is used. I'd be very surprised if the cost weren't at least as high as the cost of Photon Chat's highest tiers (https://www.photonengine.com/en-US/Chat/Pricing#plan-20).

    If you're planning on anything of any real size then I highly recommend using GameSparks (https://www.gamesparks.com/) since their free restrictions are far less limiting. Where SendBird has a 1,000 MAU (Monthly Active Users) and 25 CCU (Concurrent Users), GameSparks gives you the first 100,000 MAU for free with no limit on CCUs.

    Of course if you're just making this for yourself and some friends choose whichever is easiest for you.
     
    Last edited: Feb 17, 2017
    wccrawford likes this.
  10. GameSparks_Clare

    GameSparks_Clare

    Joined:
    Feb 7, 2017
    Posts:
    37
    Thanks for the recommendation Ryiah!

    Hi Ttermeer,
    If you have any questions about using GameSparks you can get in touch with our support team via https://support.gamesparks.net/support/home we'd be happy to assist!
    Clare
     
  11. mofirouz

    mofirouz

    Joined:
    Jul 14, 2015
    Posts:
    27
    Nakama has a realtime chat component that allows the player to PM others or join a group chat conversation. It's also entirely open-source :) You can find the unity package here. I'm one of the devs behind it so let me know if you have any technical or non-technical questions.
     
  12. hippogames

    hippogames

    Joined:
    Feb 5, 2015
    Posts:
    233
    Unlikely, it's too complicaed and I was unable to integrate it in 1 hour. I suppose that many developers are looking for simple 1 minute pure chat integration)
     
  13. GameSparks_Clare

    GameSparks_Clare

    Joined:
    Feb 7, 2017
    Posts:
    37
    Hi Hippogames,

    I am sorry to hear that you found GameSparks overly complicated to integrate with. The support team is on hand to help you with any questions you may have should you decide to spend some more time on the platform.

    Clare
     
  14. NatsumeKita

    NatsumeKita

    Joined:
    Feb 19, 2017
    Posts:
    7
    Wondering can I make a simple message board in my unity game using gamesparks? I would like to have a player start a message thread, then other can add comments/respond. Also, the ability to rate the thread, and then show top rated threads, search threads. Basically a small forum.
    Is this possible with gamesparks, and is there any tutorial for such a thing?