i did the following steps. But cordova plugin for android doesnt seem to work for me in force.com site
Steps followed for Cordova
1.Cordova create appname. (cd appname) 2.cordova plugin add org.apache.cordova.dialogs 3.cordova platform add android
Steps followed in salesforce side:
1.Force.com site is created. 2.platforms -> android ->assets->www-> Zipped the following contents(cordova.js,cordova-plugin.js,plugin folder). 3.Static resource has been created with the above zip file. 3.Visualforce page is created with same code as found in (http://th3silverlining.com/2015/02/07/using-native-mobile-device-features-from-visualforce-with-phonegap/)
Changed the value from index.html to the force.com site url in config.xml.
Cordova build android Cordova emulate android . Android emulator is opened with my site in app.
But the plugin doesnt seem to work. when i click the outputLink, i am getting normal js alert only in my android emulator :(