diff --git a/platform-includes/enriching-events/set-user/apple.mdx b/platform-includes/enriching-events/set-user/apple.mdx index a64f232d5e4044..4a8e7b1fb50eb0 100644 --- a/platform-includes/enriching-events/set-user/apple.mdx +++ b/platform-includes/enriching-events/set-user/apple.mdx @@ -3,6 +3,7 @@ import Sentry let user = User() user.email = "john.doe@example.com" +// Start the SDK before setting the user, otherwise it will be ignored. SentrySDK.setUser(user) ``` @@ -11,5 +12,6 @@ SentrySDK.setUser(user) SentryUser *user = [[SentryUser alloc] init]; user.email = @"john.doe@example.com"; +// Start the SDK before setting the user, otherwise it will be ignored. [SentrySDK setUser:user]; ```