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
-
someDude6247y@1989 they were dead once. But not anymore. Otherwise hell would be full of deadbodies burning.
-
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 -
someDude6247y@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
-
someDude6247y@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?
-
@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 -
someDude6247yOh 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
-
@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.
Related Rants
-
cdrice105"You gave us bad code! We ran it and now production is DOWN! Join this bridgeline now and help us fix this!" ...
-
MoboTheHobo35My Friend: Dude our Linux Server is not working anymore! Me: What? What did you do? My friend: Nothing I swe...
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
Anyone here got any experience with making a realtime chat app using laravel, socket.io, and android? Pls help before i kill myself.
question
fml
sockets