Thank you jough but I still cant get it work:(
For example I have a controller:
.controller('infoCtrl', function($scope) {
ionic.Platform.ready(function() {
var device = ionic.Platform.device();
alert(device.platform);
});
});
and it returns undefined when I run it on iPhone.
p.s. I have installed org.apache.cordova.device and my config.xml is
<feature name="Device">
<param name="ios-package" value="CDVDevice" />
</feature>