Hello,
i need to implement in my android application a very basic text chat but unfortunately i cannot use the GCM fw, so i was thinking to use my linux server as bridge between the two devices: the devices will connect to the server.
Is not really important that the messages get delivered immediately, neither need of push notification.
I think to use a service for polling my server and retrieve the new messages, i have written a php application that store and retrieve messages, i use json for post an get.
Not sure if is the best way, that script store all the messages on mysql, there will be a large amount of messages exchanged every days, i also don't want to use external services like free chats etc..
I need some directions in how to do this with b4a + server.
Anyone has ever written a chat application without GCM framework using his own server and can post some example please?
Sorry if this is not my first post about this argument.
Thank you.
i need to implement in my android application a very basic text chat but unfortunately i cannot use the GCM fw, so i was thinking to use my linux server as bridge between the two devices: the devices will connect to the server.
Is not really important that the messages get delivered immediately, neither need of push notification.
I think to use a service for polling my server and retrieve the new messages, i have written a php application that store and retrieve messages, i use json for post an get.
Not sure if is the best way, that script store all the messages on mysql, there will be a large amount of messages exchanged every days, i also don't want to use external services like free chats etc..
I need some directions in how to do this with b4a + server.
Anyone has ever written a chat application without GCM framework using his own server and can post some example please?
Sorry if this is not my first post about this argument.
Thank you.
Last edited: