7

Anyone here got any experience with making a realtime chat app using laravel, socket.io, and android? Pls help before i kill myself.

Comments
  • 0
    Nah... a couple hrs more to go
  • 0
    You can't. I d be dead
  • 0
    Dead and gone. In the past. Just like your name xD @1989
  • 0
    @1989 why d they meet? They re dead.
  • 0
    @1989 well reincarnated people and people in hell aren't technically dead
  • 0
    @1989 they were dead once. But not anymore. Otherwise hell would be full of deadbodies burning.
  • 0
    is java sufficient tho?
  • 0
    @BindView wat
  • 0
    @1989 indeed my friend
  • 0
    Use push notifications, on mobile you need either:
    1. an always open socket between app and server
    2. Receive push notifications with message info or at least message ID and destination ID

    I once made real time app using WCF & WPF (all .Net techs) the way they were handled is with an open socket between server and app so that when an event/anything is triggered on the server and passes through the conditions, server sends data over the open socket which the app is listening to
  • 0
    i can give u really simple java example i u aint limited to php
  • 0
    @BindView that is the problem. I m limited to php here. The complete project is in php and just this module needs to be real time because chat... i ve been looking into its implementation with redis, node, and socket
  • 0
    @gitpush i see. Currently i am using redis to broadcast messages to node from laravel. I can send them but i cannot figure out how to recieve them on android. Usimg socket.io for this. Any advice on that?
  • 1
    @someDude in this case you need a socket open on Android, I mentioned push notifications because system handles it's lifecycle.
    Yes can create a socket by code Java.io.Socket it's there in SDK.
    But a better one is have node send a push it is guaranteed to arrive as long as device has internet even if app is closed
  • 1
    Oh alright. Time to look into that then. Thanks man!@gitpush i ve been searching and experimenting with this for over 14 hrs straight now. Laravel n android i can handle. Completely new to the rest
  • 2
    @someDude best of luck man, and if you want to test REST calls, check postman app it is better than writing code, then testing the result. You can directly test request by calling URL and passing its content.
  • 1
    @gitpush thanks, and yeah, i use it a lot :D
  • 1
    @someDude good luck :D
Add Comment