Get device uuid

Hi ! :smiley:

I’m getting problem while I’m trying to get the device UUID.

At the first launch I cannot access to my UUID, but at the second I can.

.run(function ($ionicPlatform) {

  $ionicPlatform.ready(function() {

    var device = ionic.Platform.device();
    var uuid = device.uuid;
    localStorage.setItem("uuid", uuid);


How can I access to it at the 1st launch?


Thanks :slight_smile:

Whereas ionic.Platform.platform() work at the first launch.