Android Question 2 player internet application

cbal03

Member
Licensed User
Longtime User
I'm curious if anyone else has created an app (in b4a) that allows 2 ppl to interact over the internet.

I wrote an app that allows 2 ppl to play a game. Here's what I did.
Both devices connect to an online database.
Each device has his own record in a table.
When device #1 performs an action, the action is written to device #2's online record.
Device #2 polls it own online record and reads the action from Device #1 and vice versa.

I've tried data streaming to replace 'polling' but there is always some glitch with the stream that causes unreasonable delays.

The method I use is reliable but I'm curious if there a better or different way to achieve 2 device interation online?
 

cbal03

Member
Licensed User
Longtime User
Looks promising. I'm going to try implementation.
I'm hopeful that your websocket server could become the new foundation for our game server communications.
Looks like I'll need to update my b4a to v3.8.
Thanks Erel!!
 
Upvote 0

DonManfred

Expert
Licensed User
Longtime User
Looks like I'll need to update my b4a to v3.8.
buy a new update and you then can update directly to 5.8 (3.8 is really old now) :D
 
Upvote 0
Top