anemitoff / PhoneGap-PhoneDialer

A plugin for ios phone gap to launch the dialer programatically in ios >= 5
http://www.kohactive.com
MIT License
12 stars 17 forks source link

Class Not found error #5

Closed lhotea closed 10 years ago

lhotea commented 10 years ago

Hi,

I am using the plugin with build.phonegap.com. Phonegap v3.1.0 Have teh following entry in config.xml:

and my index.html file has:

... Conf Call Arnaud

... function copyanddial(blah) { window.plugins.clipboard.copy(blah) phonedialer.dial( blah, function(err) { if (err == "empty") alert("Unknown phone number"); else alert("Dialer Error:" + err);
}, function(success) { alert('Dialing succeeded'); } )

        }

When I click the link the function copyanddial is called and the dial calls the error function with err = Class not found. I have tried hard coding the phone number to "0445750000" (instead of blah) and I get the same.

Thanks for your help Arnaud

bau720123 commented 10 years ago

@lhotea have you really indeed install the plugin rightly ? no mater the plugin is,if you got a message "Class not found" that meaning is you are not installed it correctly

install it by config.xml https://build.phonegap.com/plugins/328

lhotea commented 10 years ago

Hi,

I managed to fix it by adding the device plug in as well. I am using phonegap build so the install is automagic.

Cheers Arnaud

Von Samsung Mobile gesendet

-------- Ursprüngliche Nachricht -------- Von: bau720123 notifications@github.com Datum: 25.02.2014 13:41 (GMT+01:00) An: anemitoff/PhoneGap-PhoneDialer PhoneGap-PhoneDialer@noreply.github.com Cc: lhotea arnaud@lhote.ch Betreff: Re: [PhoneGap-PhoneDialer] Class Not found error (#5)

@lhotea have you really indeed install the plugin rightly ? no mater the plugin is,if you got a message "Class not found" that meaning is you are not installed it correctly

install it by config.xml https://build.phonegap.com/plugins/328

— Reply to this email directly or view it on GitHub.

anemitoff commented 10 years ago

As you figured out... The plugin must be installed for the platform you are building. I think if you added the plugin first and then added a platform you might have to re-install the plug-in so that is applied to the newly added platform (although I am not sure about this... could be the newest CLI for cordova or phonegap take care of this when you run the "prepare" command).