Multipeer connectivity over Bluetooth?

bluetooth, ios, multipeer-connectivity

Solution

The same code will work.

No need to explicitly advertise on Bluetooth. It will automatically come. Just take care of keeping bluetooth of both devices ON.

There is no explicit setting for bluetooth or Wifi, It will connect devices in whatever possible way they are available.

Problem

I started to advertise, started to browse. When on the same WiFi, it works. But when I turn WiFi off, and leaving only Bluetooth, nor even the `-(void)browser:(MCNearbyServiceBrowser*) browser foundPeer:(MCPeerID*) peerID withDiscoveryInfo:(NSDictionary*) info` gets called. Do I have to indicate to advertise on Bluetooth explicitly somehow? Or should it work this way seamlessly? With GameKit there was a setting for this. I can't find any similar in MC.

Original source