title: IONIC/cordova, make phone call in IOS
body: <p>I have found a thread in ionic on this topic: <a href="http://forum.ionicframework.com/t/making-phone-call-from-app-href-tel-123/1968/11">http://forum.ionicframework.com/t/making-phone-call-from-app-href-tel-123/1968/11</a>.</p>
  
  <p>It mentions the whitelist plugin:
  <a href="https://github.com/apache/cordova-plugin-whitelist">https://github.com/apache/cordova-plugin-whitelist</a></p>
  
  <p>So I try to add these code in the config.xml, but it still can not work.</p>
  
  <pre><code>&lt;access origin="tel:*" launch-external="yes" /&gt;
  &lt;access origin="mailto:*" launch-external="yes" &gt;
  
  &lt;allow-intent href="tel:*" /&gt;
  </code></pre>
  
  <p><strong>HTML</strong>:</p>
  
  <pre><code>&lt;a href="tel: 110"&gt;call&lt;/a&gt;
  </code></pre>
  
  <p><strong>Error</strong>:</p>
  
  <blockquote>
    <p>2015-07-03 00:21:16.231 myParking[27167:1006045] Failed to load
    webpage with error: The URL can’t be shown</p>
  </blockquote>
  
  <p>I try to use another plugin, but it still can not work. </p>
  
  <p><a href="https://github.com/Rohfosho/CordovaCallNumberPlugin">https://github.com/Rohfosho/CordovaCallNumberPlugin</a></p>
  
  <p><strong>HTML</strong>:</p>
  
  <pre><code>&lt;span ng-click="onDail($index)"&gt;call&lt;/span&gt;
  </code></pre>
  
  <p><strong>JS</strong>:</p>
  
  <pre><code>var onSuccess = function(){
      console.log("success");
  }
  
  var onError = function(){
      console.log("fail");
  }
  
  $scope.onDail = function(index){
      window.plugins.CallNumber.callNumber(onSuccess, onError, $scope.ParkingRecords[index].number);
  }
  </code></pre>
  
  <p><strong>Error</strong>:</p>
  
  <blockquote>
    <p>2015-07-03 00:24:09.620 myParking[27308:1007392] fail</p>
  </blockquote>
  
  <p>So how can I make this work?</p>
  
  <p>ionic version: <strong>1.4.3</strong>
  cordova version: <strong>5.0.0</strong></p>