iPhone と友人の Android デバイスで Bluetooth チェスをプレイするにはどうすればよいですか? あぴ?(おそらく他の質問と重複しています)
3 に答える
Why not just use a web service? It'd be easier than doing bluetooth discovery and pairing or wifi-server client stuff (trust me, at least on the latter). It's the easiest way to make everything relatively network (ie 3g/4g/wifi) independent. You just have a simple protocol your app follows, and you can play with all players everywhere, no discovery needed. Probably less battery drain than bluetooth too.
Bonjour is great for discovering stuff (ie other players) on the same network. The problem with bonjour is you usually need to be on the same wifi network (though not necessarily, but don't ask me how the hell this works, but it can be done apparently). You'd also in theory need to apply for an bonjour/mdns id, though this is pretty easy.
Here's a similar question.
次のリンクは、「ビギニング IOS ゲーム センターとゲーム キット: IPhone、IPad、および iPod Touch 用」という名前の本を提供します。