Skip to content

Commit 4bb47f3

Browse files
saga64ErjanGavalji
authored andcommitted
Get uuid for iOS
1 parent 8a0c0dd commit 4bb47f3

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

platform/platform.ios.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,8 @@ export class device implements definition.device {
5858

5959
static get uuid(): string {
6060
if (!device._uuid) {
61-
/*NSUserDefaults* userDefaults = [NSUserDefaults standardUserDefaults];
62-
var UUID_KEY = @"CDVUUID";
63-
CFUUIDRef uuidRef = CFUUIDCreate(kCFAllocatorDefault);
64-
CFStringRef uuidString = CFUUIDCreateString(kCFAllocatorDefault, uuidRef);
65-
*/
61+
var uuidRef = CFUUIDCreate(kCFAllocatorDefault);
62+
device._uuid = CFUUIDCreateString(kCFAllocatorDefault, uuidRef);
6663
}
6764

6865
return device._uuid;

0 commit comments

Comments
 (0)