Hello Fernando,
The Cordova API is only available on the actual device, are you testing this on the device?
You can use Weinre debugger for the App running on the device, here you can find details how to get started: https://docs.appery.io/docs/weinre-de...