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?
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?