This is not available out of the box in Cordova and you would have to use Cordova plugins that expose this functionality e.g.:
Note that both plugins are not plugman compatible and are also built for very old version of Cordova, so you would have to update them prior using them. For more information refer to the following article:Making a Custom Plugin Plugman-Compatible.
Looking for tips & tricks directly from the Icenium team? Check out our blog!
Share feedback and vote for features on our Feedback Portal.