Basically you can import a custom plugin by following these steps
. The archive of the plugin can be found in its GitHub repository. Just click the "Download Zip" button there.
Some older plugins does not provide a reference to the .js file so you will have to add one manually. I did a tiny change to this plugin so it adds the reference for you. Just put the code below under <platform name="android">
tag in the plugin.xml file. The file itself can be edited as described here
Please take a look at the attached sample.
One way to add the plugin to your app is to zip the TelephoneNumberPlugin-master folder located in Plugins folder and follow the import procedure from our documentation. That's all.
But if you want to start from the scratch, download the zip from the GitHub repo
and import it. Then add the code above in the plugin.xml or copy the telephonenumber.js
file from plugin's folder to your root (or somewhere else) and add a reference to it in your index.html. Notice that the reference should be positioned after Cordova's one.
Unfortunately, this plugin won't be able to obtain the phone number because some operators do not store the number in the SIM card and I hope you will have more luck with that. It didn't work on my side.
Here is some more info on the matter:
If I can be of further assistance please let me know.