Skip to content

Commit 92471c6

Browse files
danielgekHristo Hristov
authored andcommitted
fix: uuid for ios changed on IOS v7 (NativeScript#4681)
1 parent c98443b commit 92471c6

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

tns-core-modules/platform/platform.ios.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,7 @@ class Device implements DeviceDefinition {
6767
var app_uuid = userDefaults.stringForKey(uuid_key);
6868

6969
if (!app_uuid) {
70-
var uuidRef = CFUUIDCreate(kCFAllocatorDefault);
71-
app_uuid = CFUUIDCreateString(kCFAllocatorDefault, uuidRef);
70+
app_uuid = NSUUID.UUID().UUIDString;
7271
userDefaults.setObjectForKey(app_uuid, uuid_key);
7372
userDefaults.synchronize();
7473
}

0 commit comments

Comments
 (0)