Android Question Multi-OS chat app

Shay

Well-Known Member
Licensed User
Longtime User
Hi

In which Library I need to use if I wish to create chat app, that can work on Android / Iphone / Windows mobile ..

Thanks
Shay
 

Linostar

Member
Licensed User
Longtime User
What communication channel will you use for your chat app? If it is bluetooth, you can see how it is done in this tutorial:
http://www.b4x.com/android/forum/threads/android-bluetooth-bluetoothadmin-tutorial.14768/

Otherwise, if the channel is a LAN, or the internet itself, you'll have to use something like the Websocket library.
See this: http://www.b4x.com/android/forum/threads/websocket-client-library.40221/
and this: http://www.b4x.com/android/forum/threads/custom-websocket-based-push-framework.40272/#content
 
Upvote 0

Shay

Well-Known Member
Licensed User
Longtime User
Do I need to create both Client and server on each app?
(I wish to do chat from client to client)
 
Upvote 0

Linostar

Member
Licensed User
Longtime User
Yes, you'll need both client and server in each app if it is 2-way chat. Server for listening to incoming messages, and client for sending messages to the listening server.
 
Upvote 0

KMatle

Expert
Licensed User
Longtime User
I'm working on this at the moment. I think, you want to build an app like WhatsApp.

Problem is that de devices don't know the other devices ip adress and there are restrictions (provider). So you need an instance between them (server).
I connect to a database and store the message. The other device takes a look and downloads the message. I will upload an example when I have time (including automatic registration by mail).
 
Upvote 0

PaulR

Active Member
Licensed User
Longtime User
For Android + Windows Phone+ iOS compatibility you'd need to either write/build for each platform separately or use cross platform development tools. I don't know what the best options are for an SDK that targets all three (I'm using JUCE at the moment, but that doesn't do W8P), but there are shadows on the horizon that look like there will be a b4A equivalent for iOS in an unknown length of time.

Having said that, it's worth getting your hands dirty with a few other SDKs just to make using b4a even easier when you come back to it. :)
 
Upvote 0
Top