PhoneDialer

Cordova Device Plugin
gaetansenn0.2.01
platforms: ios
$ cordova plugin add com.phonegap.core.phonedialer

Usage

Error return by the plugin : ["feature","empty"]

phonedialer.dial("123", function(err) {
            if (err == "feature")
                alert("Your device doesn't support this feature.");
            if (err == "empty")
                alert("Unknown phone number");
});

Installation

cordova add plugin "current repo"

Problem

If you get this error : PhoneDialerPlugin[...] CDVPlugin class PhoneDialer (pluginName: PhoneDialer) does not exist. Check if the PhoneDialer.m exist in your xcode project: "Build Phases" Section -> "Compile Sources"