From eca6cc20624eb83bb234980d6a9249ce600ca48c Mon Sep 17 00:00:00 2001 From: Brian Giori Date: Wed, 3 Apr 2024 17:30:44 -0700 Subject: [PATCH] fix: remove sync method, call initializeDeviceID from getDeviceId --- Sources/Amplitude/Amplitude.m | 4 ---- Sources/Amplitude/Public/Amplitude.h | 7 ------- 2 files changed, 11 deletions(-) diff --git a/Sources/Amplitude/Amplitude.m b/Sources/Amplitude/Amplitude.m index ac56ce87..74e94613 100644 --- a/Sources/Amplitude/Amplitude.m +++ b/Sources/Amplitude/Amplitude.m @@ -1669,10 +1669,6 @@ - (NSString *)getAdSupportID { } - (NSString *)getDeviceId { - return self.deviceId; -} - -- (NSString *)getDeviceIdSync { return [self initializeDeviceId]; } diff --git a/Sources/Amplitude/Public/Amplitude.h b/Sources/Amplitude/Public/Amplitude.h index 5be0f8d7..8fa9ee39 100644 --- a/Sources/Amplitude/Public/Amplitude.h +++ b/Sources/Amplitude/Public/Amplitude.h @@ -726,13 +726,6 @@ typedef void (^AMPInitCompletionBlock)(void); */ - (NSString *)getDeviceId; -/** - Fetches the deviceId synchronously. This must be called after initialization, but will access the device ID from the storage or generate one if the asynchronous intialization function has not reached that point yet. The device ID is a unique identifier shared between multiple users using the same app on the same device. - - @returns the deviceId. - */ -- (NSString *)getDeviceIdSync; - /** Regenerates a new random deviceId for current user. Note: this is not recommended unless you know what you are doing. This can be used in conjunction with setUserId:nil to anonymize users after they log out. With a nil userId and a completely new deviceId, the current user would appear as a brand new user in dashboard.