Skip to content

Commit 8beb43f

Browse files
feat(apple): Start the SDK before calling setUser (#12798)
Add a comment to the setUser code snipped to point out users have to start the SDK before.
1 parent 00874c4 commit 8beb43f

File tree

1 file changed

+2
-0
lines changed
  • platform-includes/enriching-events/set-user

1 file changed

+2
-0
lines changed

platform-includes/enriching-events/set-user/apple.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Sentry
33

44
let user = User()
55
user.email = "[email protected]"
6+
// Start the SDK before setting the user, otherwise it will be ignored.
67
SentrySDK.setUser(user)
78
```
89

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

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

0 commit comments

Comments
 (0)