# Device UUID

**URL:** <https://forums.fusetools.com/t/device-uuid/6929>\
**Category:** How-to Discussions\
**Created:** [May 6, 2016, 11:19am UTC](https://forums.fusetools.com/t/device-uuid/6929 "2016-05-06T11:19:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alex\_Lokhman](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/alex_lokhman/32/362_2.png) [@Alex\_Lokhman](https://forums.fusetools.com/u/Alex_Lokhman)\
**Post date:** [May 6, 2016, 11:19am UTC](https://forums.fusetools.com/t/device-uuid/6929/1 "2016-05-06T11:19:55Z")

</div>

Hi!

Can you please advise if Uno already has functionality to get device UUID or I have to create native customisations to get that?

Thanks

---

<div class="post-metadata">

**Author:** ![Remi\_Pedersen](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/remi_pedersen/32/432_2.png) [@Remi\_Pedersen](https://forums.fusetools.com/u/Remi_Pedersen)\
**Post date:** [May 6, 2016, 11:32am UTC](https://forums.fusetools.com/t/device-uuid/6929/2 "2016-05-06T11:32:45Z")

</div>

There’s no out-of-the-box support as far as I know, but it should be fairly easy to implement something using [foreign code](https://www.fusetools.com/learn/uno#working-with-foreign-code). I haven’t tested but it looks like these stackoverflow posts could serve as a decent starting point: [android](http://stackoverflow.com/questions/14872257/difference-between-android-uuid-and-phonegap-device-uuid), [ios](http://stackoverflow.com/questions/20944932/how-to-get-device-udid-in-programatically-in-ios7)

---

<div class="post-metadata">

**Author:** ![Bjorn-Olav\_Strand](https://yyz1.discourse-cdn.com/flex035/user_avatar/forums.fusetools.com/bjorn-olav_strand/32/583_2.png) [@Bjorn-Olav\_Strand](https://forums.fusetools.com/u/Bjorn-Olav_Strand)\
**Post date:** [May 6, 2016, 11:52am UTC](https://forums.fusetools.com/t/device-uuid/6929/3 "2016-05-06T11:52:43Z")

</div>

I’ve used this for iOS:

```auto
        [Foreign(Language.ObjC)]
        extern(iOS) public string DeviceIdImpl () 
        @{
            NSUUID *oNSUUID = [[UIDevice currentDevice] identifierForVendor];
            return [oNSUUID UUIDString];
        @}

```

---

<div class="post-metadata">

**Author:** ![Donald](https://avatars.discourse-cdn.com/v4/letter/d/ac8455/32.png) [@Donald](https://forums.fusetools.com/u/Donald)\
**Post date:** [June 3, 2016, 5:27pm UTC](https://forums.fusetools.com/t/device-uuid/6929/4 "2016-06-03T17:27:25Z")

</div>

.
