Google News
logo
PhoneGap - Interview Questions
What does PhoneGap plugin consist of? What are the files required to create your own PhoneGap plugin for IOS?
PhoneGap plugin contains two files :

* JavaScript file that defines the function for accessing the native hooks
* Implementation files written in the native language to co-ordinate with native phone features


To create your own PhoneGap plugins, you have to :

* Make a new directory in your ${PROJECT_DIR}/plugins directory
* Make a JavaScript file within that new directory
* Make a new Objective-C class that extends the PhoneGap command class and also in the new directory
Advertisement