# Functions

{% hint style="info" %}
To initialise the package use below code
{% endhint %}

```
document.addEventListener('deviceready', onDeviceReady, false);

var accura;

function onDeviceReady() {

     // Cordova is now initialized.

     accura = cordova.plugins.ACCURAService;

}
```
