File tree Expand file tree Collapse file tree 5 files changed +7
-6
lines changed
LeanplumSDK/LeanplumSDK/ClassesSwift Expand file tree Collapse file tree 5 files changed +7
-6
lines changed Original file line number Diff line number Diff line change @@ -58,7 +58,7 @@ import Foundation
5858
5959 func handleCleverTapNotification( userInfo: [ AnyHashable : Any ] , event: NotificationEvent ) {
6060 handleWithCleverTapInstance {
61- Log . debug ( """
61+ Log . info ( """
6262 [Wrapper] Calling CleverTap.handlePushNotification:openDeepLinksInForeground: \
6363 \( Constants . OpenDeepLinksInForeground) for Push \( event)
6464 """ )
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ class CTWrapper: Wrapper {
4141 userId: String ,
4242 deviceId: String ,
4343 callbacks: [ CleverTapInstanceCallback ] ) {
44- Log . debug ( " [Wrapper] Wrapper Instantiated " )
44+ Log . info ( " [Wrapper] Wrapper Instantiated " )
4545 self . accountId = accountId
4646 self . accountToken = accountToken
4747 self . accountRegion = accountRegion
Original file line number Diff line number Diff line change @@ -91,7 +91,7 @@ import UIKit
9191 Log . debug ( " Push notification not handled, no message id found. " )
9292 return
9393 }
94- Log . debug ( " Notification Opened MessageId: \( messageId) " )
94+ Log . info ( " Notification Opened MessageId: \( messageId) " )
9595
9696 let isDefaultAction = action == LP_VALUE_DEFAULT_PUSH_ACTION
9797
@@ -128,7 +128,7 @@ import UIKit
128128 // MARK: Notification Received
129129 func notificationReceived( userInfo: [ AnyHashable : Any ] , isForeground: Bool ) {
130130 guard let messageId = Utilities . messageIdFromUserInfo ( userInfo) else { return }
131- Log . debug ( " Notification received - \( isForeground ? " Foreground " : " Background " ) . MessageId: \( messageId) " )
131+ Log . info ( " Notification received - \( isForeground ? " Foreground " : " Background " ) . MessageId: \( messageId) " )
132132
133133 trackDelivery ( userInfo: userInfo)
134134 if isForeground {
Original file line number Diff line number Diff line change @@ -120,12 +120,12 @@ extension NotificationsProxy {
120120 }
121121
122122 if conforms, let notifDelegate = applicationDelegate as? UNUserNotificationCenterDelegate {
123- Log . debug ( " Setting \( userNotificationDelegateName) . " )
123+ Log . info ( " Setting \( userNotificationDelegateName) . " )
124124 UNUserNotificationCenter . current ( ) . delegate = notifDelegate
125125 swizzleUserNotificationDidReceiveNotificationResponseWithCompletionHandler ( )
126126 swizzleUserNotificationWillPresentNotificationWithCompletionHandler ( )
127127 } else {
128- Log . debug ( " Failed to set \( userNotificationDelegateName) . " )
128+ Log . error ( " Failed to set \( userNotificationDelegateName) . " )
129129 }
130130 }
131131 }
Original file line number Diff line number Diff line change @@ -67,6 +67,7 @@ public class NotificationsProxy: NSObject {
6767
6868 func applicationLaunched( launchOptions: [ AnyHashable : Any ] ) {
6969 if let remoteNotification = launchOptions [ UIApplication . LaunchOptionsKey. remoteNotification] as? [ AnyHashable : Any ] {
70+ Log . info ( " Application Launched with notification: \( remoteNotification) " )
7071 notificationHandledFromStart = remoteNotification
7172
7273 // started in background, woken up by remote notification
You can’t perform that action at this time.
0 commit comments