Skip to content

Commit

Permalink
feat(apple): Start the SDK before calling setUser (#12798)
Browse files Browse the repository at this point in the history
Add a comment to the setUser code snipped to point out users have to
start the SDK before.
  • Loading branch information
philipphofmann authored Feb 21, 2025
1 parent 00874c4 commit 8beb43f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions platform-includes/enriching-events/set-user/apple.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import Sentry

let user = User()
user.email = "[email protected]"
// Start the SDK before setting the user, otherwise it will be ignored.
SentrySDK.setUser(user)
```

Expand All @@ -11,5 +12,6 @@ SentrySDK.setUser(user)

SentryUser *user = [[SentryUser alloc] init];
user.email = @"[email protected]";
// Start the SDK before setting the user, otherwise it will be ignored.
[SentrySDK setUser:user];
```

0 comments on commit 8beb43f

Please sign in to comment.