title: Reconnecting to disconnected peers
body: <p>I'm using the iOS 7 Multipeer framework in my app but I'm experiencing a problem with devices disconnecting. If I open the app in two devices: device A and device B the two devices connect to each other automatically. However, after several seconds device A disconnects from device B. i.e. At first the connection is like this:</p>
  
  <pre><code>A ---&gt; B
  A &lt;--- B
  </code></pre>
  
  <p>After several seconds:</p>
  
  <pre><code>A ---&gt; B
  A      B
  </code></pre>
  
  <p>Device A maintains it's connection but device B get's a MCSessionStateNotConnected. </p>
  
  <p>This means that A can send data to B but B can't reply. I tried to get around this by checking if the device is connected and if it's not, re-initiating the connection using:</p>
  
  <pre><code>[browser invitePeer:peerID toSession:_session withContext:Nil timeout:10];
  </code></pre>
  
  <p>But the didChangeState callback just get's called with MCSessionStateNotConnected. </p>
  
  <p>Strangely if I send app A to the background, then re-open it, B reconnects to it and the connection is maintained. </p>
  
  <p>The Multipeer API (and documentation) seems a bit sparse so I was assuming that it would just work. In this situation how should I re-connect the device?</p>