@@ -24,7 +24,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2424 _ application: UIApplication ,
2525 didFinishLaunchingWithOptions launchOptions: [ UIApplication . LaunchOptionsKey : Any ] ? = nil
2626 ) -> Bool {
27- NSLog ( " FINISHED LAUNCHING WITH OPTIONS " )
2827 ITBInfo ( )
2928
3029 let delegate = ReactNativeDelegate ( )
@@ -48,27 +47,22 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
4847 }
4948
5049 func application( _ application: UIApplication , didRegisterForRemoteNotificationsWithDeviceToken deviceToken: Data ) {
51- NSLog ( " REGISTERED FOR REMOTE NOTIFICATIONS " )
5250 ITBInfo ( )
5351 IterableAPI . register ( token: deviceToken)
5452 }
5553
5654 func application( _ application: UIApplication ,
5755 didFailToRegisterForRemoteNotificationsWithError
5856 error: Error ) {
59- NSLog ( " FAILED TO REGISTER FOR REMOTE NOTIFICATIONS " )
6057 ITBInfo ( " error: \( error) " )
6158 }
6259
6360 func application( _ application: UIApplication , didReceiveRemoteNotification userInfo: [ AnyHashable : Any ] , fetchCompletionHandler completionHandler: @escaping ( UIBackgroundFetchResult ) -> Void ) {
64- NSLog ( " RECEIVED REMOTE NOTIFICATIONS " )
6561 ITBInfo ( )
6662 IterableAppIntegration . application ( application, didReceiveRemoteNotification: userInfo, fetchCompletionHandler: completionHandler)
6763 }
6864
6965 func application( _ application: UIApplication , continue userActivity: NSUserActivity , restorationHandler: @escaping ( [ UIUserActivityRestoring ] ? ) -> Void ) -> Bool {
70- NSLog ( " RECEIVED UNIVERSAL LINK " )
71- NSLog ( " userActivity: \( userActivity) " )
7266 ITBInfo ( )
7367 guard let url = userActivity. webpageURL else {
7468 return false
@@ -78,9 +72,6 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
7872 }
7973
8074 func application( _ app: UIApplication , open url: URL , options: [ UIApplication . OpenURLOptionsKey : Any ] = [ : ] ) -> Bool {
81- NSLog ( " OPEN URL " )
82- NSLog ( " url: \( url) " )
83- NSLog ( " options: \( options) " )
8475 ITBInfo ( )
8576 return RCTLinkingManager . application ( app, open: url, options: options)
8677 }
@@ -128,13 +119,11 @@ class ReactNativeDelegate: RCTDefaultReactNativeFactoryDelegate {
128119extension AppDelegate : UNUserNotificationCenterDelegate {
129120 // App is running in the foreground
130121 public func userNotificationCenter( _ center: UNUserNotificationCenter , willPresent notification: UNNotification , withCompletionHandler completionHandler: @escaping ( UNNotificationPresentationOptions ) -> Void ) {
131- NSLog ( " WILL PRESENT NOTIFICATION " )
132122 completionHandler ( [ . alert, . badge, . sound] )
133123 }
134124
135125 // The method will be called on the delegate when the user responded to the notification by opening the application, dismissing the notification or choosing a UNNotificationAction. The delegate must be set before the application returns from applicationDidFinishLaunching:.
136126 public func userNotificationCenter( _ center: UNUserNotificationCenter , didReceive response: UNNotificationResponse , withCompletionHandler completionHandler: @escaping ( ) -> Void ) {
137- NSLog ( " DID RECEIVE NOTIFICATION RESPONSE " )
138127 IterableAppIntegration . userNotificationCenter ( center, didReceive: response, withCompletionHandler: completionHandler)
139128 }
140129}
0 commit comments