You have to add js code :
<script src="cordova.js"></script>
<script src="scripts/telephonenumber.js"></script>
EDITED :
I tried thiese steps to get it worked :
1) I installed the plugin and I I get sure that I have "com.simonmacdonald.telephonenumber" folder inside Plugins folder in my project.
2) I searched and replaced all "cordova/plugin/telephonenumber" with "telephonenumber" in js file in the plugin folder (com.simonmacdonald.telephonenumber).
3) then It didn't work for me, I tried to include "telephonenumber.js" to my project, this file could be found on com.simonmacdonald.telephonenumber\www , so I copy that file to the scripts folder of my project and it works well.
4) now this works :
var telephoneNumber = cordova.require("telephonenumber");
telephoneNumber.get(function (result) {
alert(result);
callback(result); //callback function is called here
}, function () {
alert("error");
});
U should know that this plugin doesn't work on some phones, I tries on ASUS K00E and GT-5830 without result, but I get result on S7562 and N7003.
I think that this plugin is not perfect, Now I'm using SMS sending from clients to get their phonenumber ...