Skip to content

Commit

Permalink
Add FXIOS-5198 [v107] Track memory warning (#12292)
Browse files Browse the repository at this point in the history
  • Loading branch information
OrlaM authored Nov 2, 2022
1 parent b095b66 commit 2c31879
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Client/Application/AppDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
return true
}

func applicationDidReceiveMemoryWarning(_ application: UIApplication) {
// This is not fatal but sentry only sends fatal events
SentryIntegration.shared.sendWithStacktrace(message: "Memory warning received",
severity: .fatal)
}

// We sync in the foreground only, to avoid the possibility of runaway resource usage.
// Eventually we'll sync in response to notifications.
func applicationDidBecomeActive(_ application: UIApplication) {
Expand Down

0 comments on commit 2c31879

Please # to comment.