Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Example/DemoApp/UpdateUtil.swift
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ struct UpdateUtil {
}
DispatchQueue.main.async {
UIApplication.shared.open(url) { _ in
// Post notification event before closing the app
// Post notification event before closing the app, some SDKs may consider exit(0) as an unexpected
// termination otherwise. This is the case for Sentry.
NotificationCenter.default.post(name: UIApplication.willTerminateNotification, object: nil)

// Close the app after a slight delay so it has time to execute code for the notification
Expand Down
3 changes: 2 additions & 1 deletion Sources/ETDistribution.swift
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,8 @@ public final class ETDistribution: NSObject {
return
}
UIApplication.shared.open(url) { _ in
// Post notification event before closing the app
// Post notification event before closing the app, some SDKs may consider exit(0) as an unexpected
// termination otherwise. This is the case for Sentry.
NotificationCenter.default.post(name: UIApplication.willTerminateNotification, object: nil)

// Close the app after a slight delay so it has time to execute code for the notification
Expand Down