title: Building iOS Native App using WebRTC
body: <p>I'm searching for 4 days, but can't get it. I built all libraries and integrated it in my custom project, but I don't know what steps should I do to make it work. The only thing that i found with code example\explanation is tech.appear.in/2015/05/25/Getting-started-with-WebRTC-on-iOS , but it is poor and unclear for me, AppRTCDemo source code too. I read about WebRTC for browsers but still can't reproduce it on iOS.
  Can anybody explain or provide links to explanation on how to completely build iOS native app using WebRTC API for example p2p ios chat? </p>
  
  <p>Besides the fact that I do not understand code logic provided in demo, I can't understand:</p>
  
  <p>1) What is ICE servers for my iOS app? Should I take care of it? Is it something server side? Should I code and run it myself, or I can use existing Parse background?</p>
  
  <p>2) What is signaling mechanism in iOS app? Is it client side only, or it must be implemented on server side too?</p>
  
  <p>3) And maybe someone can explain step-by-step guide, maybe with some code, how to implement simple iOS p2p chat using WebRTC? For example:</p>
  
  <p>"You have to:</p>
  
  <ol>
  <li><p>Create ICE/STUN/TURN server on parse core using this =source= and this tutorial =tutorial=.</p></li>
  <li><p>Create RTCPeerConnection using created ICEServer: 
  <code>RTCPeerConnectionFactory *pcFactory = [[RTCPeerConnectionFactory alloc] init];
  RTCPeerConnection *peerConnection = [pcFactory peerConnectionWithICEServers:kICEServerURL constraints:nil delegate:self];</code></p></li>
  <li><p>Create DataChannel using <code>...</code></p></li>
  <li><p>Send signal using <code>...</code> explained here =link=</p></li>
  <li><p>Set local and remote descriptions <code>...</code></p></li>
  <li><p>Send Data <code>...</code> using <code>...</code></p></li>
  <li><p>... " or something similar.</p></li>
  </ol>
  
  <p>I'm sorry for asking this, but I'm losing my mind trying to figure it out. Thank you!</p>