Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You didn't specify which version of Cordova you are using so I'm going to assume version > 3.</p> <p>Make sure that <a href="http://cordova.apache.org/docs/en/3.1.0/cordova_inappbrowser_inappbrowser.md.html#InAppBrowser">InAppBrowser</a>, a <a href="http://plugins.cordova.io/#/org.apache.cordova.inappbrowser">plugin</a> since version 3, <a href="http://cordova.apache.org/docs/en/3.1.0/guide_cli_index.md.html#The%20Command-line%20Interface_add_features">is installed</a> and then open the link by calling it through Javascript like this:</p> <pre><code>window.open('tel:12345678', '_system') </code></pre> <p><code>_system</code> will open it with the systems own browser which in turn will open the call dialog, if you use it against <a href="http://maps.apple.com/">http://maps.apple.com/</a> it will open in the maps app and similar for other apps which opens for special urls.</p> <p><strong>Remarks:</strong></p> <ul> <li>As described <a href="https://github.com/apache/cordova-plugin-inappbrowser">in the docs of the InAppBrowser plugin</a> the <code>window.open</code> function won't be set automatically. You have to do it your self: <code>window.open = cordova.InAppBrowser.open;</code>. Instead you can directly use <code>cordova.InAppBrowser.open('tel:12345678', '_system');</code></li> <li>Make sure your number doesn't have any blankspaces in it (the + prefix is okay). For example you could use a function like the following, assuming <code>num</code> is a string.</li> </ul> <p>Function:</p> <pre><code>function placeCall(num) { if (window.cordova) { cordova.InAppBrowser.open('tel:' + num.replace(/\s/g,''), '_system'); } } </code></pre>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload