FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix: uuid for ios changed on IOS v7 (#4681) · NativeScript/NativeScript@92471c6 · GitHub

Commit 92471c6

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

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

‎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)

Back | FazBrowse Home | New Git URL