Device UUID

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

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. I haven’t tested but it looks like these stackoverflow posts could serve as a decent starting point: android, ios

I’ve used this for iOS:

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

.