File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
sample-apps/swiftui-sample-app/swiftui-sample-app Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import SwiftUI
4
4
struct MainApp : App {
5
5
@UIApplicationDelegateAdaptor
6
6
private var appDelegate : AppDelegate
7
-
7
+
8
8
var body : some Scene {
9
9
WindowGroup {
10
10
ContentView ( )
@@ -18,7 +18,7 @@ class AppDelegate: NSObject, UIApplicationDelegate {
18
18
NotificationsHelper . shared. setupNotifications ( )
19
19
20
20
IterableHelper . initialize ( launchOptions: launchOptions)
21
-
21
+
22
22
return true
23
23
}
24
24
@@ -29,16 +29,16 @@ class AppDelegate: NSObject, UIApplicationDelegate {
29
29
}
30
30
31
31
func application( _: UIApplication , didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data ) {
32
- IterableHelper . register ( token: deviceToken)
32
+ IterableHelper . register ( token: deviceToken)
33
33
}
34
34
35
35
func application( _ application: UIApplication , didFailToRegisterForRemoteNotificationsWithError error: Error ) {
36
- fatalError ( )
36
+ print ( " Failed to register token: \( error . localizedDescription ) " )
37
37
}
38
38
39
39
func application( _ application: UIApplication , continue userActivity: NSUserActivity , restorationHandler: @escaping ( [ UIUserActivityRestoring ] ? ) -> Void ) -> Bool {
40
40
guard let url = userActivity. webpageURL else {
41
- return false
41
+ return false
42
42
}
43
43
44
44
return IterableHelper . handle ( universalLink: url)
You can’t perform that action at this time.
0 commit comments