From 537a3feef07f7f18214c96bf19e9a0ec062a6622 Mon Sep 17 00:00:00 2001 From: Philipp Hofmann Date: Fri, 21 Feb 2025 11:41:33 +0100 Subject: [PATCH] feat(apple): Start the SDK before calling setUser Add a comment to the setUser code snipped to point out users have to start the SDK before. --- platform-includes/enriching-events/set-user/apple.mdx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/platform-includes/enriching-events/set-user/apple.mdx b/platform-includes/enriching-events/set-user/apple.mdx index a64f232d5e404..4a8e7b1fb50eb 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]; ```