Skip to content

Commit e8523a8

Browse files
sfanahataShannon Anahata
andauthored
Add close( ) method to Apple drain doc (#13492)
## DESCRIBE YOUR PR Updating the Apple drain doc to include the `close ( )` method. Liked to #13468 ## IS YOUR CHANGE URGENT? Help us prioritize incoming PRs by letting us know when the change needs to go live. - [ ] Urgent deadline (GA date, etc.): <!-- ENTER DATE HERE --> - [ ] Other deadline: <!-- ENTER DATE HERE --> - [x] None: Not urgent, can wait up to 1 week+ ## SLA - Teamwork makes the dream work, so please add a reviewer to your PRs. - Please give the docs team up to 1 week to review your PR unless you've added an urgent due date to it. Thanks in advance for your help! ## PRE-MERGE CHECKLIST *Make sure you've checked the following before merging your changes:* - [ ] Checked Vercel preview for correctness, including links - [ ] PR was reviewed and approved by any necessary SMEs (subject matter experts) - [ ] PR was reviewed and approved by a member of the [Sentry docs team](https://github.com/orgs/getsentry/teams/docs) --------- Co-authored-by: Shannon Anahata <[email protected]>
1 parent c5d6015 commit e8523a8

File tree

1 file changed

+6
-0
lines changed
  • platform-includes/configuration/drain-example

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
11
The Apple SDK automatically stores the Sentry events on the device's disk before shutdown.
2+
3+
There are times where you may need to manually call `close()` to ensure that events are sent before the app terminates. For example, if an app user revokes some privacy consent and the app can't use Sentry anymore, calling `close()` will still send the events to Sentry.
4+
5+
```swift
6+
SentrySDK.close()
7+
```

0 commit comments

Comments
 (0)