I'm trying to access the "device" object of PhoneGap to get the device name, version etc but I keep getting "Cannot read property 'name' of undefined".
Seems like "device" is undefined?
I used the example code from http://docs.phonegap.com/en/1.5.0/phonegap_device_device.md.html
var phoneName = device.name;
I can see that in the project the Device plugin is enabled.
Seems like "device" is undefined?
I used the example code from http://docs.phonegap.com/en/1.5.0/phonegap_device_device.md.html
var phoneName = device.name;
I can see that in the project the Device plugin is enabled.