I am trying to synchronize two devices so that they can start the game at the same time.
The mechanism that I've thought about is that I would use the phones' time and set the intervals at, for example, ten seconds each. Then, when the start button is clicked, it will start the game on the beginning of the next interval. So, as long as the start buttons on both devices are clicked in a short time frame of each other, the game should start at the same time.
For the game, near perfect synchronization is important.
Will this work? I am assuming that every phone receives a timestamp from a single source, so that internal clocks are at the same time.
If that doesn't work, what is an alternative/better solution to offline multi-device synchronization?