Manually install Device plugin (and others) into cordova 3.0

后端 未结 4 1621
花落未央
花落未央 2020-12-28 23:59

Phonegap/Cordova 3.0 has moved into a modular design starting with version 3.0. For example, to call the device.version API, you need to include the Device plug

4条回答
  •  再見小時候
    2020-12-29 00:46

    For Android we just need to create the plugin (Java class extending CordovaPlugin) and then add the item into config.xml (res/xml/..) you are done.

     
            
        
    

    assume Calendar as your plugin name Also make sure to add link to js file

    Thanks

提交回复
热议问题