/PhoneGap-ios-PhoneDialer

A plugin for ios phone gap to launch the dialer programatically in ios >= 5

Primary LanguageObjective-CMIT LicenseMIT

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"