Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
I would use websocket, as @alexbrooklyn said, and Firebase for receiving notifications on mobile when app is not active.
-
@CoffeeAndHate I found an article about socket.io Redis and laravel but it wasn't clear enough. Can you explain more the utility of firebase in this scenario?
-
You will need Firebase if you want your users to receive notifications after they close the app.
You won't be able to keep the websocket or any socket connection opened indefinitely because Android will eventually terminate it once the app closes.
Firebase sends notifications through Google Play Services, which is a process that is always connected to their servers. -
@CoffeeAndHate I understood. Now concerning real-time chat .I found tutorials about creating a chat platform between mobile devices .However I want to build a chat platform between a web user and mobile user .Did you ever work on this kind of project if so a good advice might help me a lot
-
@xPanther It would be more easy if you have specific questions, as I am not good at giving advices.
I would mention that php is a bad choice for the actual chat server. Choose something else, something that supports multithreading - which is pretty much anything other than php.
You can continue using laravel for what you are building, but not the chat server. -
Switch your stack. Use nodejs with express and socket.io as backend and something js based for the front end like angular. You need socket.io in the frontend too.
-
devTea240885y@xPanther it run on the same backend server, the platform doesn’t matter, both mobile and web read from same database
I am developing a REST api for my android app using laravel.I want to implement web to mobile chat like Facebook's messenger.Any suggestions?
question
kotlin laravel android api