You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: SideBackup/SideBackupApp.swift
+15-5Lines changed: 15 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -98,12 +98,22 @@ class AppDelegate: NSObject, UIApplicationDelegate {
98
98
Task{@MainActorin
99
99
// Response to the caller/parent app is posted here (url is provided by caller in incoming query params)
100
100
debugLog("[SideBackup]: Attempting to open return URL: \(responseURL.absoluteString), scheme: \(responseURL.scheme ??"nil")")
101
-
UIApplication.shared.open(responseURL, options:[:]){ success in
102
-
debugLog("[SideBackup]: Sent response to app with success: \(success)")
103
-
if !success {
104
-
debugLog("[SideBackup]: WARNING - Failed to open SideStore return URL. Scheme '\(responseURL.scheme ??"nil")' may not be registered or SideStore is not installed.")
debugLog("[SideBackup]: Sent response to app with success: \(success1)")
103
+
if success1 {
104
+
return
105
+
}
106
+
debugLog("[SideBackup]: WARNING - Failed to open SideStore return URL. Scheme '\(responseURL.scheme ??"nil")' may not be registered or SideStore is not installed.")
debugLog("[SideBackup]: Sent response to app with success: \(success2)")
112
+
if success2 {
113
+
return
106
114
}
115
+
debugLog("[SideBackup]: WARNING - Failed to open SideStore return URL. Scheme '\(responseURL.scheme ??"nil")' may not be registered or SideStore is not installed.")
0 commit comments